Tada
Tada

Reputation: 3

Multiple Control Templates for a custom control in Silverlight

I am creating a custom control. The contents of the control will differ a lot when in different visual states.

Can I to achieve the above, apply different control templates to the same custom control? That is define more than one control template for a custom control? If not, any clues as to how I can do this, without have as many custom/user controls as there are states?

Upvotes: 0

Views: 614

Answers (1)

kaiz.net
kaiz.net

Reputation: 1994

You could define visual states inside a single ControlTemplate and also transitions between those states. Look for 'VisualStateManager'.

Upvotes: 1

Related Questions