Hi all,
Is it possible to add in XAML some condition checking ?
Like in the following pseudo code:
<ListView
ItemsSource="{Binding Staffs}"
HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<!-- How to add condition check for example -->
<ViewCell>
<!-- Check condition from context of model the Type of view and if choose the following view -->
<views:OneView
BindingContext="{Binding .}"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"/>
<!-- else choose the following view -->
<views:AnotherView
BindingContext="{Binding .}"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"/>
<!-- endif -->
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>