Skip to main content

Microsoft Silverlight

Answered Question problems using VSMRSS Feed

(0)

waged
waged

Member

Member

0 points

1 Posts

problems using VSM

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
clint1222

Participant

Participant

1426 points

198 Posts

Answered Question

Re: problems using VSM

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}"
 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities