Is there a way to “extract” WPF controls of Expres

2020-06-28 01:09发布

问题:

I am not sure if the WPF controls that make up Expression Blend's UI is packaged in the application in a usable way, like separate assemblies, etc. But if they aren't, is there a way to "extract" these controls so you can have the same controls in your app with the same look and functionality?

回答1:

You can look in your install folder for blend under Program Files or Program Files (x86) and there will be style directories with the appropriate resources, I believe.

Otherwise you can use Snoop to look at WPF application structure and get what you need http://snoopwpf.codeplex.com/

Or a tool like DumpControlTemplate to pull it out of Blend, I know a few people that have done this.

http://www.simple-talk.com/content/print.aspx?article=1032



回答2:

Make sure that when you find a way that it is legal.