In sfTreeView, I'm showing checkbox in each node by adding following code in ItemTemplate
<sfTreeView:SfTreeView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<Grid x:Name="grid" Padding="5" RowSpacing="0" BackgroundColor="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<sfButton:SfCheckBox IsVisible="{Binding ShowCheckBox, Converter={StaticResource testConverter}}"
x:Name="CheckBox"
IsChecked="{Binding IsChecked, Mode=TwoWay}"
Text="{Binding Content.SubCategoryName}"
TextColor="Black"
VerticalOptions="Center"
FontSize="{OnPlatform Android={OnIdiom Phone=16, Tablet=18},iOS={OnIdiom Phone=16,Tablet=18},UWP={OnIdiom Phone=18,Tablet=20,Desktop=20}}"/>
<Label Grid.Column="1" Text="{Binding Content.Price}" Margin="3" VerticalOptions="Center"/>
</Grid>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</sfTreeView:SfTreeView.ItemTemplate>
Above code shows checkbox on both parent and child node in treeview. However, I want to show checkbox only on child nodes. I have added IsVisible binding as shown in above code but it doesn't control the visibility of checkboxes. How visibility of checkboxes can be controlled through binding?
Regards,