Class ButtonPanel
Represents a ButtonPanel control.
Inheritance
System.Object
ButtonPanel
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ButtonPanel : ItemsControl
Remarks
ButtonPanel class represents a panel control that can display horizontal row of UIElements in a single border.
Examples
This example shows how to create a ButtonPanel in XAML.
<ribbon:ButtonPanel>
<ribbon:RibbonButton Name="btnIncFontSize" Command="EditingCommands.IncreaseFontSize" />
<ribbon:RibbonButton Name="btnDecFontSize" Command="EditingCommands.DecreaseFontSize" />
</ribbon:ButtonPanel>
This example shows how to create a ButtonPanel in C#.
StackPanel stackPanel;
RibbonButton button1;
RibbonButton button2;
ButtonPanel panel = new ButtonPanel();
panel.Items.Add(button1);
panel.Items.Add(button2);
stackPanel.Children.Add( panel );
Constructors
ButtonPanel()
Declaration
public ButtonPanel()
Fields
SeparatorVisibilityProperty
Identifies the SeparatorVisibility dependency property.
Declaration
public static readonly DependencyProperty SeparatorVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the SeparatorVisibility dependency property.
Properties
SeparatorVisibility
Gets or sets the separator visibility.
Declaration
public Visibility SeparatorVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | The separator visibility. |