views:

15

answers:

0

Hi,

I have created a user control with a control template (containing VisualStateGroups definition), and also have an accompanying c# class.

ie Public Class MyClass: UserControl{......}

I have hooked up the usercontrol mouse enter and mouse leave to go to their relative visual states....and this works. When i run the app, and mouse over the control

the visual state doesn't change and im not sure why not. GoToState always returns false.

more details: http://stackoverflow.com/questions/3374887/gotostate-does-not-work-for-controltemplate-in-usercontrol

Thank You

Peter