Class SplitButtonAdv
SplitButton
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Shared.WPF.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2007SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/VS2010Style.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/ShinyRedStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/ShinyBlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(TileViewControl), XamlResource = "/Syncfusion.Shared.WPF;component/Controls/ButtonControls/SplitButton/Themes/SplitButton.xaml")]
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/MetroStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(TileViewControl), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ButtonControls/SplitButton/Themes/TransparentStyle.xaml")]
public class SplitButtonAdv : DropDownButtonAdv, IButtonAdv, IDisposable, ICommandSource
Constructors
SplitButtonAdv()
Initializes a new instance of the SplitButtonAdv class.
Declaration
public SplitButtonAdv()
Fields
CommandParameterProperty
Using a DependencyProperty as the backing store for CommandParameter.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CommandProperty
Using a DependencyProperty as the backing store for Command.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CommandTargetProperty
Using a DependencyProperty as the backing store for CommandTarget.
Declaration
public static readonly DependencyProperty CommandTargetProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsDefaultProperty
Identifies the IsDefault dependency property.
Declaration
public static readonly DependencyProperty IsDefaultProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the IsDefault dependency property.
IsDropDownPressedProperty
Using a DependencyProperty as the backing store for IsDropDownPressed.
Declaration
public static readonly DependencyProperty IsDropDownPressedProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Command
Gets or sets the command.
Declaration
public ICommand Command { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand | The command.The defult value isnull |
CommandParameter
Gets or sets the command parameter.
Declaration
public object CommandParameter { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The command parameter.The defult value isnull |
CommandTarget
Get or Set Command Target
Declaration
public IInputElement CommandTarget { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.IInputElement | The CommandTarget. The defult value isnull |
IsDefault
Gets or sets a value indicates whether the SplitButtonAdv is default button.
Declaration
public bool IsDefault { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true, if the SplitButtonAdv is a default button; otherwise, false. The default value is false. |
Remarks
A user can activate the default button by pressing the Enter key. When enter key is pressed, the button is focused and click event is raised.
IsDropDownPressed
Get Or Set IsDropDownPressed
Declaration
public bool IsDropDownPressed { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The defult value isfalse |
Methods
Dispose()
Dispose Events of Split button control
Declaration
public override void Dispose()
Overrides
OnAccessKey(AccessKeyEventArgs)
Gets the Key value based on IsDefault property
Declaration
protected override void OnAccessKey(AccessKeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.AccessKeyEventArgs | e | Provides data for the pressed key which need to access |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
Overrides
OnClick()
Occurs when [click].
Declaration
protected virtual void OnClick()
OnCreateAutomationPeer()
Automation
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
| Type |
|---|
| System.Windows.Automation.Peers.AutomationPeer |
Overrides
OnKeyUp(KeyEventArgs)
Called before the System.Windows.UIElement.KeyUp event occurs.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | The data for the event. |
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseEnter routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. Event that occurs when the mouse pointer moves leaves this element. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Element.MouseLeftButtonUp routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs Event that occurs when the left mouse button is released while the mouse pointer is over this control. |
Overrides
OnMouseWheel(MouseWheelEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseWheel routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseWheelEventArgs | e | The System.Windows.Input.MouseWheelEventArgs that contains the event data. Invoked when the mouse wheel rotates over the DropDownButtonAdv |
Overrides
OnPreviewKeyDown(KeyEventArgs)
Invoked when a System.Windows.Input.Keyboard.PreviewKeyDown attached routed event occurs.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | Provides data for the System.Windows.UIElement.KeyDown routed events, as well as related attached and Preview events. |
Events
Click
Occurs when button is clicked.
Declaration
public event RoutedEventHandler Click
Event Type
| Type |
|---|
| System.Windows.RoutedEventHandler |