Reputation: 1769
I'm trying to style a button with this :
<Button Canvas.Top="200" Canvas.Left="170" Width="150" Height="150"
Click="Button_Click"
Style="{StaticResource ButtonTestStyle}" />
and this :
<Style x:Key="ButtonTestStyle" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<TextBlock Text="Test" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
but, when I click on the button, the click event isn't fired.
What am I doing wrong ?
Thanks for your help, Best regard
Upvotes: 1
Views: 314
Reputation: 1769
I think the problem comes from the transparent background.
Thanks for your help
Upvotes: 2