Class SfTreeNavigator
Represents a control that enables the user to navigate through items Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem in a tree structure Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigator
Inheritance
Namespace: Syncfusion.Windows.Controls.Navigation
Assembly: Syncfusion.SfTreeNavigator.WPF.dll
Syntax
public class SfTreeNavigator : HeaderedItemsControl
Constructors
SfTreeNavigator()
Initializes a new instance of the SfTreeNavigator class.
Declaration
public SfTreeNavigator()
See Also
Fields
DrillDownItemProperty
Using a DependencyProperty as the backing store for DrillDownItem. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DrillDownItemProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DrillDownItemsProperty
Using a DependencyProperty as the backing store for DrillDownItems. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DrillDownItemsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NavigationModeProperty
Using a DependencyProperty as the backing store for NavigationMode. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty NavigationModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedEvent
Defines an event for the Selection of Items
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
SelectedItemProperty
Using a DependencyProperty as the backing store for SelectedItem. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
DrillDownItem
Gets the child item Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem
Declaration
public HeaderedItemsControl DrillDownItem { get; }
Property Value
Type |
---|
System.Windows.Controls.HeaderedItemsControl |
DrillDownItems
Gets or sets a collection of the child items Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem
Declaration
public ObservableCollection<object> DrillDownItems { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<System.Object> |
NavigationMode
Gets or sets the mode of navigation to other items Syncfusion.UI.Xaml.Controls.Navigation.NavigationMode
Declaration
public NavigationMode NavigationMode { get; set; }
Property Value
Type |
---|
NavigationMode |
SelectedItem
Gets or sets the item Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem
that has been selected by the user.
Declaration
public object SelectedItem { get; set; }
Property Value
Type |
---|
System.Object |
Methods
ArrangeOverride(Size)
Overridden method for the Size.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | Parameter to get the size. |
Returns
Type | Description |
---|---|
System.Windows.Size | Returns Size |
Dispose()
To clear unused objects
Declaration
public void Dispose()
GoBack()
When invoked, the control passes back to the parent item.
Declaration
public void GoBack()
MeasureOverride(Size)
Overridden method get the available Size.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | Parameter to get the size |
Returns
Type | Description |
---|---|
System.Windows.Size | Returns Size |
OnApplyTemplate()
Initializes all the child elements of the Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigator control.
Declaration
public override void OnApplyTemplate()
OnItemsChanged(NotifyCollectionChangedEventArgs)
Occurs when the items Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem has changed.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Parameter for the Object |
OnSelectionChanged(DependencyPropertyChangedEventArgs)
Occurs when the selected item has changed.
Declaration
protected virtual void OnSelectionChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | Parameter for the Dependency Property Changed Event. |
OnStyleChanged(Style, Style)
Occurs when the control style has changed.
Declaration
protected override void OnStyleChanged(Style oldStyle, Style newStyle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Style | oldStyle | previous style of the SfTreeNavigator. |
System.Windows.Style | newStyle | Current style of the SfTreeNavigator. |
Select(Object)
Sets the item as the selected item.
Declaration
public void Select(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | Parameter for the object |
Events
SelectionChanged
Occurs when the Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigatorItem has changed.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
Type |
---|
System.Windows.Controls.SelectionChangedEventHandler |