i have this silverlight application i am creating, i made a button tamplate and storyboards to control it. works beautiful, but now i want to add the rest of the buttons and apply all storyboards to all buttons when using MouseEnter, MouseLeave etc and i
cant do it. i could of course devlop redundant code to apply to all of them but that is gonna be really long and ineffeicnt can any1 help me please?
In Blend you would right click on the new button, select Edit Control Parts (Template), then select Apply Resource, and select the template you created.
The resulting xaml is the template attribute is added to the new button
waged
0 Points
1 Post
problems using VSM
Jul 03, 2009 11:58 PM | LINK
hi guys,
i have this silverlight application i am creating, i made a button tamplate and storyboards to control it. works beautiful, but now i want to add the rest of the buttons and apply all storyboards to all buttons when using MouseEnter, MouseLeave etc and i cant do it. i could of course devlop redundant code to apply to all of them but that is gonna be really long and ineffeicnt can any1 help me please?
clint1222
Contributor
2066 Points
299 Posts
Re: problems using VSM
Jul 04, 2009 01:47 AM | LINK
Hi waged,
In Blend you would right click on the new button, select Edit Control Parts (Template), then select Apply Resource, and select the template you created.
The resulting xaml is the template attribute is added to the new button
Template="{StaticResource yourTemplateName}"