Class TreeViewCommand
Implements a commands for tree view item.
Namespace: Sartorius.SAF.Presentation.Commands
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public static class TreeViewCommand
Fields
View SourceCommandProperty
Command to execute on click event.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Methods
View SourceGetCommand(DependencyObject)
Retrieves the ICommand attached to the TreeViewItem.
Declaration
public static ICommand GetCommand(DependencyObject dependencyObject)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | Tree view containing the Command dependency property |
Returns
| Type | Description |
|---|---|
| ICommand | The value of the command attached |
SetCommand(DependencyObject, ICommand)
Sets the ICommand to execute on the click event.
Declaration
public static void SetCommand(DependencyObject dependencyObject, ICommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | A dependency object to attach command |
| ICommand | command | Command to attach |