Dynamic Resource?

2 posts, 0 answers
  1. Sven
    Sven avatar
    3 posts
    Member since:
    Nov 2010

    Posted 03 May 2014 Link to this post

    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">
        <CompositeTransform Rotation="90" TranslateX="-21.765" TranslateY="2.675"/>

  2. Victor
    Victor avatar
    1349 posts

    Posted 08 May 2014 Link to this post

    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.


    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.

  3. DevCraft banner
Back to Top