Class NavigationToolbarItem
Represents the NavigationToolbarItem UI element.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class NavigationToolbarItem : Control
Constructors
NavigationToolbarItem(GroupBarItem)
Initializes a new instance of the NavigationToolbarItem class.
Declaration
public NavigationToolbarItem(GroupBarItem item)
Parameters
Type | Name | Description |
---|---|---|
GroupBarItem | item | The item Navigation toolbar item. |
Fields
ImageSourceProperty
Identifies ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsSelectedProperty
Identifies IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowInToolbarProperty
Identifies ShowInToolbar dependency property.
Declaration
public static readonly DependencyProperty ShowInToolbarProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TextContentProperty
Declaration
public static readonly DependencyProperty TextContentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
GroupBarItem
Gets the group bar item.
Declaration
public GroupBarItem GroupBarItem { get; }
Property Value
Type | Description |
---|---|
GroupBarItem | The group bar item. |
ImageSource
Gets or sets the image source.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.ImageSource | The image source. |
IsSelected
Gets or sets a value indicating whether this instance is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if this instance is selected; otherwise, false. |
LogicalParent
Gets the logical parent.
Declaration
public NavigationToolbar LogicalParent { get; }
Property Value
Type | Description |
---|---|
NavigationToolbar | The logical parent. |
ShowInToolbar
Gets or sets a value indicating whether [show in toolbar].
Declaration
public bool ShowInToolbar { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
TextContent
Declaration
public string TextContent { get; set; }
Property Value
Type |
---|
System.String |
Methods
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized property is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
OnSelected(RoutedEventArgs)
Called when item IsSelected property is changed.
Declaration
protected virtual void OnSelected(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e | The object containing the event data. |
OnUnselected(RoutedEventArgs)
Called when item IsSelected property is changed.
Declaration
protected virtual void OnUnselected(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e | The object containing the event data. |