w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to make control in controltemplate visible only when treeview has items bound to it

Hi You can use HasItems in Trigger like.

XAML:
<Trigger Property="ItemsControl.HasItems" Value="True">
 <Setter Property="Visibility" TargetName="Name" Value="Collapsed"/>

</Trigger>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.