In xaml it was possible to handle controls’ appearance using DataTemplate.Triger but in win8 xaml it is not available:
<DataTrigger Binding="{Binding Role.Count, Converter={StaticResource isGreaterThanZero}" Value="True">
<Setter TargetName="Counts" Property="Visibility" Value="Hidden" />
</DataTrigger>
How to do the same thing in windows 8 xaml?
If you look at the default Visual Studio Templates for Grid and Split layouts, you will find an example of a value converter that sets a controls visibility based on a Boolean value. The code is shown here
All you would need to is copy this code and modify it to set the visibility property based on an integer value – IntToVisibilityConverter, for example. You would use the converter like this on the control you wanted to be affected