I want to set the color of my SimpleLineSymbol to a dynamic resource so that the color can be bound to my Window. The xaml below does not work and I can figure out why:
<Grid.Resources>
<Color x:Key="routeColor">#FF8D8DFB</Color>
<SolidColorBrush x:Key="routeColorBrush" Color="{DynamicResource routeColor}" />
<esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="{DynamicResource routeColorBrush}" Width="2" />
</Grid.Resources>
However, the xaml below is fine and it works, but I can't bind the color to the window.
<Grid.Resources>
<esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="#FF8D8DFB" Width="2" />
</Grid.Resources>
Any ideas on what is wrong?