Is it possible to set the ItemsSource of a list view based on Some condition. I tried the following, but it didn't work.
<ListView ItemsSource="{Binding FirstTypeOfSource}" .....>
<ItemsControl.ItemContainerStyle>
<Style >
<Style.Triggers>
<DataTrigger Binding="{Binding Category}" Value="All">
<Setter Property="ItemsSource" Value="SecondTypeOfCategory"/>
</DataTrigger>
</Style.Triggers>
</Style>
</ItemsControl.ItemContainerStyle>
</ListView>
Can someone help to figure out the solution ?