views:

5

answers:

0

I want to create a ControlTemplate that will trigger on vertain values of their DependancyProperties for example a different image appear on a button Anyway there are reasons why I need DependancyProperties

This is a sample of what could be in my user control .. I have just shown a simple example of an effect triggered by a property change The problem I have is I don't know how to reference a PropertyDependacy or UserControl in a ControlTemplate

0 6 7 8 9 10 12 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

I want to replace IsEnabled with a DependancyProperty of my own choosing Line 20 and 24 Shouldn't Line 10 be the name of the UserCoctrol that this code is in

I am pulling my hair out f