Setting SimpleLineSymbol color using dynamic resource

Discussion created by tim2u on Dec 3, 2013
Latest reply on Dec 4, 2013 by dlednik-esristaff
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:

            <Color x:Key="routeColor">#FF8D8DFB</Color>
            <SolidColorBrush x:Key="routeColorBrush" Color="{DynamicResource routeColor}" />
            <esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="{DynamicResource routeColorBrush}" Width="2"   />

However, the xaml below is fine and it works, but I can't bind the color to the window.

            <esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="#FF8D8DFB" Width="2"   />

Any ideas on what is wrong?