↧
Answer by Romasz for Grid Background Colour Based on Item Property
You can for example use a Converter for this task: Define a converter class in a namespace: namespace MyConverters { public class BoolToBrush : IValueConverter { private Brush FalseValue = new...
View ArticleGrid Background Colour Based on Item Property
How do I set the background colour of individual grid items based on a property of the individual item? I have the following code: <PivotItem x:Uid="PivotBlocks" Margin="10, 10, 10, 10"...
View Article