WPF ControlTemplate and Binding
- by Vinjamuri
In the below code, MousePressImage is a dependency property of class ButtonControl.
The following Binding doesn't work.. Appreciate your help in solving this issue..
Value="{Binding RelativeSource={x:Static RelativeSource.Self},
Path=MousePressImage}"/>
--
I create the ButtonControl like this.
<local:ButtonControl Height="48" Width="160" MouseOverImage="pack://application:,,,/Recipe_06_13;component/Resources/Over.bmp" MousePressImage="pack://application:,,,/Recipe_06_13;component/Resources/Press.bmp" DisableImage=" ">
</local:ButtonControl>