开发者

Are there any designers for WPF resource dictionaries?

I've discovered to my great annoyance, that once I move a color gradient or some other complex style to a resource dictionary it is out of Expression Blend's Visual Studio WPF Designer Thingy's jurisdiction and must be edited in XAML. I have no issues with working in XAML except that it is more time intensive than a designer. So my question is simple. Ar开发者_运维技巧e there any designers for resource dictionaries?


I'm a Silverlight guy so possibly my answer is not valid. However in Blend you should be able to design resource dictionaries just fine. Go to the Resources tab and it should list all the dictionaries in your project. Expand the one you are interested in and you can design all the resources inside from there.

http://i.imgur.com/etbXF.png

If the resource dictionary in question is not listed in the tab, open its file (double click it in the Projects explorer), then it should show up. I believe this is a bug in Blend (I'm using 4.0.20525.0)


Yes, there's a way to do this in Visual Studio.

It's cumbersome but simple.
All you have to do is have the element that's using the ResourceDictionary in the designer, right click it, and in Edit Template choose Edit Current.

Are there any designers for WPF resource dictionaries?

It will open your ResourceDictionary, along with your element in the designer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜