I'm trying to capture the ItemTapped event for an sfTreeView control (in WPF). Unfortunately when I click on a node nothing happens.
Here is the XAML snippet:
Grid.Column="1" Grid.Row="0"
Grid.ColumnSpan="2"
Margin="5"
ItemsSource="{Binding RootCategories}"
NotificationSubscriptionMode="PropertyChange"
NodePopulationMode="Instant"
ChildPropertyName="ChildNodes">
VerticalAlignment="Center"
IsChecked="{Binding IsSelected}"/>
VerticalAlignment="Center"
Text="{Binding DisplayName}"/>
ChildPropertyName="ChildCategories"
TargetType="db:Category"/>
And here is the MVVM code:
// in the constructor
ItemTapped = new RelayCommand( ItemTappedHandler );
// later on in the MVVM code:
public RelayCommand ItemTapped { get; }
private void ItemTappedHandler( ItemTappedEventArgs? e )
{
/
}