forked from icsharpcode/SharpDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBitmapButton.xaml
More file actions
32 lines (32 loc) · 1.33 KB
/
Copy pathBitmapButton.xaml
File metadata and controls
32 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<Button x:Class="ICSharpCode.XamlDesigner.BitmapButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Focusable="False">
<Button.Template>
<ControlTemplate TargetType="Button">
<Image x:Name="image1"
Stretch="None"
Source="{Binding ImageNormal}" />
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Source"
Value="{Binding ImageHover}"
TargetName="image1" />
</Trigger>
<Trigger Property="IsPressed"
Value="True">
<Setter Property="Source"
Value="{Binding ImagePressed}"
TargetName="image1" />
</Trigger>
<Trigger Property="IsEnabled"
Value="False">
<Setter Property="Source"
Value="{Binding ImageDisabled}"
TargetName="image1" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>