Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Created style to the WPF Window using Customer Control and Style know i want to give a option to default style to the WPF window how it is possible.

http://www.codeproject.com/KB/WPF/CustomFrames.aspx

Please refer this page , their is two custom window i want to add one more that is default WPF Window style

In that demo their is a Combobox we have to change style of that custom window ,i want to add one more that is default WPF style.How can i give the WPF default style.
Posted

1 solution

Your question is a bit confusing. I would assume this is what you want:

- you have defined a style for a type of control as a dictionary resource
- you want to show one control of this type with the default style
- you want to show another control of the same type with your new style

If this is the case, you have to provide a Key name to the style in the dictionary, then apply the style explicity to the controls you want to be non-default.
 
Share this answer
 
Comments
jobyjames 28-Jul-11 0:15am    
Please download this application
http://www.codeproject.com/KB/WPF/CustomFrames.aspx

their is a 2 option on the combobox to change the window frame .i have to add one more item on the combobox that is Defaulf wpf style .when i click that option i want to show the default style of the WPF

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900