PDA

View Full Version : custom windows



ErickTreetops
August 3rd, 2009, 01:14 AM
Hi i'm new to wpf and blend.
I've created a custom window in Expression blend 2.
I want to use this new window design for an entire project in wpf.
How to i save it as a class/template/controltemplate whatever so i can instatiate the new windows each time in a wpf project ?

regards


ErickTreetops

kirupa
August 3rd, 2009, 05:30 PM
Hi Erick,
There is no easy way to do that because you are trying to re-use a Window. One thing you can do is create your own custom window, much like a custom control, and give your custom window the look and feel that you want.

Using it will not be particularly as easy as dragging and dropping a custom control. You will need to go into XAML and replace references to the Window node with that of your custom window instead.

Cheers!
Kirupa :emb:


Hi i'm new to wpf and blend.
I've created a custom window in Expression blend 2.
I want to use this new window design for an entire project in wpf.
How to i save it as a class/template/controltemplate whatever so i can instatiate the new windows each time in a wpf project ?

regards


ErickTreetops