This is a migrated thread and some comments may be shown as answers.

Dynamic Resource?

1 Answer 91 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sven
Top achievements
Rank 1
Sven asked on 03 May 2014, 09:33 AM
Hello, I want to se the Color/Fill to a dynamic value which I can change by code (c#)

SO how can I set {StaticResource PhoneBackgroundBrush} to be dynamic? Like Something {DynamicResource MyBrush}


<Path Data="F1M85.5693,707.2471L72.0003,717.5881L72.0003,697.0001z" Fill="{StaticResource PhoneBackgroundBrush}" HorizontalAlignment="Left" Height="20.588" Margin="25,22.425,0,0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="13.569">
    <Path.RenderTransform>
    <CompositeTransform Rotation="90" TranslateX="-21.765" TranslateY="2.675"/>
    </Path.RenderTransform>
    </Path>

Thanks

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 08 May 2014, 07:06 AM
Hello Sven,

Thanks for writing. I am afraid that the DynamicResource XAML extension is not supported in the Silverlight framework, only in WPF. If you have a look at this MSDN page you will notice that DynamicResource is missing.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
Sven
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or