I have this field in my object, I want to bind to a rectangle
public string FillVal { get; set; }
I set this field with one of these values:
public const string GREENRIBBON = "#FF7CB84D";
public const string ORANGERIBBON = "#FFECB74D";
public const string REDRIBBON = "#FFFF4741";
The rectangle I use it set up like this:
<Rectangle x:Name="Level"
Fill="{Binding FillVal}"
HorizontalAlignment="Left"
Height="115"
VerticalAlignment="Top"
Width="6"
Margin="-2,0,0,0" />
But when I launch the app, I won't apply this property to the rectangle.
Why?