different styles in same itemCollection

2 posts, 0 answers
  1. Felix De Lille
    Felix De Lille avatar
    18 posts
    Member since:
    Jun 2009

    Posted 22 Feb 2010 Link to this post


    If i have multiple panelbaritems in the panelbar and i want to give different style per item. I did "Edit Template" and then as copy, then i edit something but the original tempalte (that was copied) changed also. The templates use the same resources somewhere (even dough some squares are not green).

  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 22 Feb 2010 Link to this post

    Hello Felix,

    The reason for the behavior you observed is that Blend re-uses its resources. To avoid the problem you are having, you need to rename the default brushes used in the template. You need to do that only for the first copy of the default template - when you first edit a copy of the default template, rename the default brushes, and then when you edit a second copy of the default template, Blend will create yet another copy of the default brushes (with their original names). this way when you edit one of your custom templates, the other will not be affected. I am attaching a screenshot that shows how to edit the brush names. Let me know if you need further assisstance.

    Kind regards,
    Tihomir Petkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top