-
Notifications
You must be signed in to change notification settings - Fork 151
/
TogglesView.axaml
172 lines (171 loc) · 9.48 KB
/
TogglesView.axaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<UserControl x:Class="SukiUI.Demo.Features.ControlsLibrary.TogglesView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:suki="https://github.com/kikipoulet/SukiUI"
xmlns:controlsLibrary="clr-namespace:SukiUI.Demo.Features.ControlsLibrary"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:showMeTheXaml="clr-namespace:ShowMeTheXaml;assembly=ShowMeTheXaml.Avalonia"
d:DesignHeight="450"
d:DesignWidth="800"
x:DataType="controlsLibrary:TogglesViewModel"
mc:Ignorable="d">
<ScrollViewer>
<WrapPanel Classes="PageContainer">
<suki:GlassCard>
<suki:GroupBox Header="Radio Buttons">
<showMeTheXaml:XamlDisplay UniqueId="RadioButtons">
<StackPanel VerticalAlignment="Center" Spacing="10">
<RadioButton Content="Option One"
GroupName="R1"
IsChecked="True" />
<RadioButton Content="Option Two" GroupName="R1" />
<RadioButton Content="Option Three" GroupName="R1" />
</StackPanel>
</showMeTheXaml:XamlDisplay>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="Simple Chips">
<showMeTheXaml:XamlDisplay UniqueId="SimpleChips">
<StackPanel Orientation="Horizontal" Spacing="10">
<RadioButton Height="40" Classes="Chips"
Content="Option One"
GroupName="R10"
IsChecked="True" />
<RadioButton Height="40" Classes="Chips"
Content="Option Two"
GroupName="R10" />
<RadioButton Height="40" Classes="Chips"
Content="Three State"
GroupName="R10" />
</StackPanel>
</showMeTheXaml:XamlDisplay>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="Simple GigaChips">
<showMeTheXaml:XamlDisplay UniqueId="SimpleGigaChips">
<StackPanel Orientation="Horizontal" Spacing="10">
<RadioButton Height="60" Classes="GigaChips"
Content="Option One"
GroupName="R2"
IsChecked="True" />
<RadioButton Height="60" Classes="GigaChips"
Content="Option Two"
GroupName="R2" />
<RadioButton Height="60" Classes="GigaChips"
Content="Three State"
GroupName="R2" />
</StackPanel>
</showMeTheXaml:XamlDisplay>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="Complex GigaChips">
<showMeTheXaml:XamlDisplay UniqueId="ComplexGigaChips">
<StackPanel Orientation="Horizontal" Margin="0,25,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<RadioButton Width="210"
Height="138"
Margin="7"
Classes="GigaChips"
IsChecked="True">
<StackPanel HorizontalAlignment="Left" Spacing="0,8">
<TextBlock FontSize="12"
FontWeight="DemiBold"
Foreground="{DynamicResource SukiLowText}"
Text="HOBBY" />
<TextBlock FontSize="23"
FontWeight="DemiBold"
Text="1 Gb" />
<TextBlock FontSize="15"
Foreground="{DynamicResource SukiLowText}"
Text="Plan for a moderate use as hobby."
TextWrapping="Wrap" />
</StackPanel>
</RadioButton>
<RadioButton Width="210"
Height="138"
Margin="7"
Classes="GigaChips">
<StackPanel HorizontalAlignment="Left" Spacing="0,8">
<TextBlock FontSize="12"
FontWeight="DemiBold"
Foreground="{DynamicResource SukiLowText}"
Text="PROFESSIONAL" />
<TextBlock FontSize="23"
FontWeight="DemiBold"
Text="5 Gb" />
<TextBlock FontSize="15"
Foreground="{DynamicResource SukiLowText}"
Text="Professional use in an application."
TextWrapping="Wrap" />
</StackPanel>
</RadioButton>
<RadioButton Width="210"
Height="138"
Margin="7"
Classes="GigaChips">
<StackPanel HorizontalAlignment="Left" Spacing="0,8">
<TextBlock FontSize="12"
FontWeight="DemiBold"
Foreground="{DynamicResource SukiLowText}"
Text="COMPANY" />
<TextBlock FontSize="23"
FontWeight="DemiBold"
Text="50 Gb" />
<TextBlock FontSize="15"
Foreground="{DynamicResource SukiLowText}"
Text="Plan for a industrial use in a company."
TextWrapping="Wrap" />
</StackPanel>
</RadioButton>
</StackPanel>
</showMeTheXaml:XamlDisplay>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="Toggle Switches">
<StackPanel>
<showMeTheXaml:XamlDisplay UniqueId="ToggleSwitch">
<ToggleSwitch IsChecked="True" />
</showMeTheXaml:XamlDisplay>
<showMeTheXaml:XamlDisplay UniqueId="CustomContentToggleSwitch">
<ToggleSwitch OffContent="Switch Off." OnContent="Switch On." />
</showMeTheXaml:XamlDisplay>
</StackPanel>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="Toggle Buttons">
<StackPanel>
<showMeTheXaml:XamlDisplay UniqueId="ToggleButton">
<ToggleButton Content="Toggle Me" />
</showMeTheXaml:XamlDisplay>
<showMeTheXaml:XamlDisplay UniqueId="AccentToggleButton">
<ToggleButton Classes="Accent" Content="Toggle Me" />
</showMeTheXaml:XamlDisplay>
<showMeTheXaml:XamlDisplay UniqueId="ToggleButtonSwitch">
<ToggleButton Classes="Switch" Content="Toggle Me" />
</showMeTheXaml:XamlDisplay>
</StackPanel>
</suki:GroupBox>
</suki:GlassCard>
<suki:GlassCard>
<suki:GroupBox Header="CheckBoxes">
<StackPanel>
<showMeTheXaml:XamlDisplay UniqueId="CheckBox">
<StackPanel Spacing="5">
<CheckBox Content="Option One" IsChecked="True" />
<CheckBox Content="Option Two" />
<CheckBox IsThreeState="True" Content="Option Three" />
</StackPanel>
</showMeTheXaml:XamlDisplay>
</StackPanel>
</suki:GroupBox>
</suki:GlassCard>
</WrapPanel>
</ScrollViewer>
</UserControl>