-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugComponent.xaml
More file actions
76 lines (74 loc) · 4.63 KB
/
DebugComponent.xaml
File metadata and controls
76 lines (74 loc) · 4.63 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<ContentView.Resources>
<Style x:Key="BaseButtonStyle" TargetType="buttons:SfButton">
<Setter Property="Margin" Value="8" />
<Setter Property="HorizontalOptions" Value="Fill" />
<Setter Property="HorizontalTextAlignment" Value="Center" />
<Setter Property="TextColor" Value="White" />
<Setter Property="VerticalOptions" Value="Fill" />
<Setter Property="VerticalTextAlignment" Value="Center" />
<Setter Property="Shadow">
<Setter.Value>
<Shadow Brush="Black" Offset="2,2" Opacity="0.4" Radius="4" />
</Setter.Value>
</Setter>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="Background" Value="Gray" />
<Setter Property="TextColor" Value="LightGray" />
<Setter Property="Opacity" Value="0.6" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
</ContentView.Resources>
<Grid>
<buttons:SfButton Grid.Column="0"
Style="{StaticResource BaseButtonStyle}"
Text="Run"
Command="{Binding RunCommand}"
IsEnabled="{Binding CanRun}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup List>
<VisualState Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="DarkGreen" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</buttons:SfButton>
<buttons:SfButton Grid.Column="1"
Style="{StaticResource BaseButtonStyle}"
Text="Stop"
Command="{Binding StopCommand}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup List>
<VisualState Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="DarkRed" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</buttons:SfButton>
<buttons:SfButton Grid.Column="2"
Style="{StaticResource BaseButtonStyle}"
Text="Clear"
Command="{Binding ClearCommand}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup List>
<VisualState Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="DarkBlue" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</buttons:SfButton>
</Grid>