Unable to edit\create Style Resource

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    5 posts
    Member since:
    Dec 2011

    Posted 22 Oct 2013 Link to this post

    I can set up the editot eh way I ant in XAML, but I want to change the icons for the undo buttons. I select the editor, then choose edit current, edit a copy. I make my changes and they look fine, but when I build the applidation, only the editor shell shows up and none of the buttons or tools are there. If I remove the Style setting everything works, but with the default icons.
  2. Todor
    Todor avatar
    168 posts

    Posted 23 Oct 2013 Link to this post

    Hello Bruce,

    Thank you for contacting us.

    The reason not to see the ImageToolItems when you use the extracted style is that Blend didn't extract the ItemsSource properties of the two ItemsControls in the template. 

    For your convenience, I've created a demo project where everything works as expected. I've also left "NOTE:" comments in App.xaml file which explain what I did, so please search for them.

    In addition, I suggest you use implicit styles in your applications. This approach allows you much more easily to modify an existing style or to base on it. More about these styles and their usage you can read in this article.

    I hope this helps.
    If you need further assistance, please do not hesitate to contact us again.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top