I am creating an application for Windows Phone 8 that has a view model property:
public bool IsReply {get; set;}
In my xaml code, I would like to highlight two cases:
IsReply=True
<Grid Margin="0,0,0,0">
...
</Grid>
IsReply=False
<Grid Margin="40,0,0,0">
...
</Grid>
Basically, I would like to style the Grid element depending on the value of IsReply. I know that in WPF Style.Triggers exists, but apparently not in WP. The solution I have now is to have a duplicate copy of the entire grid code and set the visibility of each in the data converter. However, I think it should be easier to do.
source
share