Class ButtonLayoutPanel
This class is responsible for layout of RibbonButtons.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ButtonLayoutPanel : Panel, IDisposable
Constructors
ButtonLayoutPanel()
Declaration
public ButtonLayoutPanel()
Fields
SeparatorBrushProperty
Identifies the SeparatorBrush dependency property.
Declaration
public static readonly DependencyProperty SeparatorBrushProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
SeparatorBrush
Gets or sets the separator brush.
Declaration
public Brush SeparatorBrush { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The separator brush. |
VisualChildrenCount
Gets count of visual children.
Declaration
protected override int VisualChildrenCount { get; }
Property Value
| Type |
|---|
| System.Int32 |
Methods
ArrangeOverride(Size)
Positions child elements and determines a size for a panel.
Declaration
protected override Size ArrangeOverride(Size arrangeSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | arrangeSize | The final area within the parent that this element should use to arrange itself and its children |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The actual size used. |
Dispose()
Releases resources used by the ButtonLayoutPanel control, specifically clearing the separator collection used for layout.
Declaration
public void Dispose()
GetVisualChild(Int32)
Gets visual child by index.
Declaration
protected override Visual GetVisualChild(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of the visual object in the VisualCollection. |
Returns
| Type | Description |
|---|---|
| System.Windows.Media.Visual | The child in the VisualCollection at the specified index value. |
MeasureOverride(Size)
Measures the size in layout required for child elements and determines a size for a panel.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | constraint | The available size that this element can give to the child. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The size that this element determines it needs during layout, based on its calculations of children's sizes. |
OnSeparatorBrushChanged(DependencyPropertyChangedEventArgs)
Raises the SeparatorBrushChanged event.
Declaration
protected virtual void OnSeparatorBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
Events
SeparatorBrushChanged
Event that is raised when SeparatorBrush property is changed.
Declaration
public event PropertyChangedCallback SeparatorBrushChanged
Event Type
| Type |
|---|
| System.Windows.PropertyChangedCallback |