Hi, Say I have a WPF XAML code as below
<Grid>
<Grid.ColumnDefinition>
<!--2 Columns are defined-->
</Grid.ColumnDefinition>
<Button x:Name="button" Grid.Column="1"/>
<ListBox x:Name="listBox" Grid.Column="2"/>
</Grid>
Now, each listboxitems are bound to an object of a class with a member named "Status". Whenever an item is selected, Status becomes "0". If un-selected status becomes "1".
Now, my question is, how do I disable/enable the button (in XAML)whenever any of the items "Status" becomes "0" or "1" respectively. Is there a way to do this via DataTriggers
Thanks