Changing Button Template in WPF
ok, i've just take a look at some WPF cast from the developer kit.net 3.5 sp1 from yesterday MSDN day.
and mm i try the HOL for WPF,
and when changing the skin of a button
i simply right click on the normal button the expression blend
Edit a control parts->edit a copy.
There's a pop up for the New style, Named it , it will be usefull later if we want to apply this style to another button.
Open up the Interaction Tab.
You'll find it hard to find, it's just under the zoom tab.
Now you can see there's two items , one is the chrome the other is ContentPresenter
Delete the chrome
Insert any Shape it's like the corel draw drawing, vector based, draw anything you like
Now i my self a little confuse at first how can i add another shape if there's already one......
it just keep replacing the old one.
Ohhh apperantly i forget that You Must add a container for this template to have more than one shape
add a GRID tag as the outer one, than include your shapes inside of it. don't forget to Enter the ContentPresenter
It's the Text label for our button.
For the next button that you want to apply this kind of button you have just make , just
Right Click->Edit control parts (template)->Apply Resources->[Your Style Name]