I am having a lot of trouble trying to bind a color of a timeline item to a specific color chosen by the user. I had thought I had the appropriate color to brush converter, and such, but whenever I run the application, the item color doesn't show up and appears transparent, but when I select a specific color in the XAML code, it works without a problem. However, the selection_changed event doesn't get fired at all.
Here is an example template I am using for the timeline item control
<DataTemplate x:Key="ItemStandardTemplate">
<Border Height="10" BorderBrush="Gray">
<Rectangle Height="7" VerticalAlignment="Center">
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Color}"/>
</Rectangle.Fill>
</Rectangle>
</Border>
</DataTemplate>
I then apply this template to the timeline control using the normal static reference, but nothing shows up. The DataContext is set correctly as other properties from the same class show up in other controls without a problem.
A couple of notes, we do have the ExpressionDark theme applied via the StyleManager reference.
If there is another way to maintain the selection_changed event and still be able to update the color when a user changes it, then I am all ears.
I am fresh out of idea's and the examples don't seem to help.
Paul
Here is an example template I am using for the timeline item control
<DataTemplate x:Key="ItemStandardTemplate">
<Border Height="10" BorderBrush="Gray">
<Rectangle Height="7" VerticalAlignment="Center">
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Color}"/>
</Rectangle.Fill>
</Rectangle>
</Border>
</DataTemplate>
I then apply this template to the timeline control using the normal static reference, but nothing shows up. The DataContext is set correctly as other properties from the same class show up in other controls without a problem.
A couple of notes, we do have the ExpressionDark theme applied via the StyleManager reference.
If there is another way to maintain the selection_changed event and still be able to update the color when a user changes it, then I am all ears.
I am fresh out of idea's and the examples don't seem to help.
Paul