|
-
Aug 6th, 2009, 03:16 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] style window
First of all does anybody have any good tutorials for changing the default look of the window in a wpf project. I am using Microsoft Expression Blend(amazing tool).
Now to my question. I am trying to style my wpf window. I have been able to change its default background and round the corners while enabling transparency. It looks amazing (probably just to me though lol) and was easy to do. However the next part seems a little more confusing to me. I am going to go through my steps.
First I clicked on the window from the objects and timeline pane. Then I went to edit template->edit a copy->named it style1. After that I changed the border that was already there to a different cornerradius and giving it a name of border1. I then added a rectangle (named rectangle1) to the upper right hand corner with its stroke set to 0. Then I went back and edited another copy to just make the corners have no cornerradius and named it style2.
Now for what I am trying to do. I would like to make it so that when the form is maximized I can take the corner radius off. The problem is I do not know how to apply a resource through code and cant find any info on it. Basically if I wanted to do this in Microsoft Expression Blend I could go to the window and right click it. Then go down to edit template->apply resource->select my template. Any ideas on how to do this through code?
If I helped you please rate me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|