Reputation: 2769
So, I have a style in a file called Styles.xaml right, then in my XAML view I have a link to in in my resource dictionary, this all works fine.
Now, in Expression Blend 4 I have a list box, and when I click "ListBox" -> "Edit Additional Templates" -> "Edit Generated Item Container {ItemsContainerStyle}" but Edit Current is greyed out - I don't want to edit a copy of the style, that's the whole reason I have just one for the whole app in my Styles.xaml file. Does anyone know why this is? and if it can be changed?
Off course I would just open the styls.xaml file and edit it there but as we all know we can't do that :(
Upvotes: 2
Views: 2056
Reputation: 10253
If EditCurrent is greyed out it means that ItemsContainerStyle on the ListBox is not set to a valid style.
BTW: You can edit resources directly in any resource dictionary, in your case simply open styls.xaml in Blend, you'll see a message stating it can't be edited in design view.
Now go to the Resources tab and expad the node containing styles.xaml and you'll see a full list of resources contained in the file. Now click on the edit resource button to the right of the resource you would like to edit.
Upvotes: 6