Class ToolBarItem
Represents Chart ToolBarItem class
Inheritance
Namespace: Syncfusion.Windows.Chart
Assembly: Syncfusion.Chart.Wpf.dll
Syntax
public class ToolBarItem : MenuItem
Constructors
ToolBarItem()
Declaration
public ToolBarItem()
Fields
CommandParameterProperty
Gets or sets the CommandParameter dependency property.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CommandProperty
Represents the Command dependency property.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CommandTargetProperty
Represents the Commandtarget dependency property.
Declaration
public static readonly DependencyProperty CommandTargetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsDropDownProperty
Identifies the IsDropDown dependency property.
Declaration
public static readonly DependencyProperty IsDropDownProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsOpenProperty
Identifies the IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsPressedProperty
Identifies the IsPressed dependency property.
Declaration
public static readonly DependencyProperty IsPressedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemImageSourceProperty
Identifies the ItemImageSource dependency property.
Declaration
public static readonly DependencyProperty ItemImageSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TextProperty
Identifies the Text dependency property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Command
Gets or sets the command that will be executed when the command source is invoked.
Declaration
public ICommand Command { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
CommandParameter
Gets or sets a user defined data value that can be passed to the command when it is executed.
Declaration
public object CommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
CommandTarget
Gets or sets a value indicating the object that the command is being executed on.
Declaration
public IInputElement CommandTarget { get; set; }
Property Value
Type |
---|
System.Windows.IInputElement |
IsDropDown
Gets or sets a value indicating whether this instance is drop down.
Declaration
public bool IsDropDown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsOpen
Gets or sets a value indicating whether the popup is kept opened
Declaration
public bool IsOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The IsOpen. |
IsPressed
Gets or sets a value indicating whether this instance is pressed.
Declaration
public bool IsPressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSelected
Gets or sets a value indicating whether this instance is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ItemImageSource
Gets or sets the Item ImageSource
Declaration
public ImageSource ItemImageSource { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.ImageSource | The ItemImageSource. |
Text
Gets or sets the Item's text
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The Text value. |
Methods
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyboardFocusChangedEventArgs | e | The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data. |
OnKeyDown(KeyEventArgs)
Invoked when the System.Windows.UIElement.KeyDown event is received.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | Information about the event. |
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.LostKeyboardFocus�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyboardFocusChangedEventArgs | e | The System.Windows.Input.KeyboardFocusChangedEventArgs that contains event data. |
OnMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state. |
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave�attached 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. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Handles MouseLeftButtonDown event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs |