Ghost1372

everything can be handy

IfExtension

Using the Conditional expression in XAML.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Button Command="{hc:If {Binding BoolProperty},
{Binding OkCommand},
{Binding CancelCommand}}" />

<!--OR-->
<UserControl>
<markup:If Condition="{Binding IsLoading}">
<markup:If.True>
<views:LoadingView />
</markup:If.True>
<markup:If.False>
<views:LoadedView />
</markup:If.False>
</markup:If>
</UserControl>
0%