|
26 | 26 | <materialDesignConverters:BooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter" TrueValue="Collapsed" FalseValue="Visible" /> |
27 | 27 | </ResourceDictionary> |
28 | 28 | </UserControl.Resources> |
29 | | - <codeDisplayer:XamlDisplayerPanel > |
30 | | - |
31 | | - |
| 29 | + <codeDisplayer:XamlDisplayerPanel HorizontalAlignment="Center"> |
| 30 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 31 | + Raised Button |
| 32 | + </TextBlock> |
32 | 33 | <Button Style="{StaticResource MaterialDesignRaisedLightButton}" Width="100" |
33 | 34 | ToolTip="Resource name: MaterialDesignRaisedLightButton"> |
34 | 35 | _LIGHT |
|
46 | 47 | ACCENT |
47 | 48 | </Button> |
48 | 49 |
|
| 50 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 51 | + Floating Action Button |
| 52 | + </TextBlock> |
49 | 53 | <Button Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" |
50 | 54 | ToolTip="MaterialDesignFloatingActionMiniLightButton"> |
51 | 55 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
52 | 56 | </Button> |
53 | | - |
54 | 57 | <Button Style="{StaticResource MaterialDesignFloatingActionMiniButton}" |
55 | 58 | ToolTip="MaterialDesignFloatingActionMiniButton"> |
56 | 59 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
57 | 60 | </Button> |
58 | | - |
59 | 61 | <Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" |
60 | 62 | ToolTip="MaterialDesignFloatingActionMiniDarkButton"> |
61 | 63 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
62 | 64 | </Button> |
63 | | - |
64 | 65 | <Button Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" |
65 | 66 | ToolTip="MaterialDesignFloatingActionMiniAccentButton"> |
66 | 67 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
67 | 68 | </Button> |
68 | | - |
69 | 69 | <Button Style="{StaticResource MaterialDesignFloatingActionLightButton}" |
70 | 70 | ToolTip="MaterialDesignFloatingActionLightButton"> |
71 | 71 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
72 | 72 | </Button> |
73 | | - |
74 | 73 | <Button Style="{StaticResource MaterialDesignFloatingActionButton}" |
75 | 74 | ToolTip="MaterialDesignFloatingActionButton"> |
76 | 75 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
77 | 76 | </Button> |
78 | | - |
79 | 77 | <Button Style="{StaticResource MaterialDesignFloatingActionDarkButton}" |
80 | 78 | ToolTip="MaterialDesignFloatingActionDarkButton"> |
81 | 79 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
82 | 80 | </Button> |
83 | | - |
84 | 81 | <Button Style="{StaticResource MaterialDesignFloatingActionAccentButton}" |
85 | 82 | ToolTip="MaterialDesignFloatingActionAccentButton"> |
86 | 83 | <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
87 | 84 | </Button> |
88 | 85 |
|
| 86 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 87 | + PopupBox |
| 88 | + </TextBlock> |
89 | 89 | <materialDesign:PopupBox PlacementMode="BottomAndAlignRightEdges" StaysOpen="False"> |
90 | 90 | <StackPanel> |
91 | 91 | <Button Content="Hello World"/> |
|
95 | 95 | <Button Content="Goodbye"/> |
96 | 96 | </StackPanel> |
97 | 97 | </materialDesign:PopupBox> |
98 | | - |
99 | 98 | <materialDesign:PopupBox StaysOpen="True"> |
100 | 99 | <Grid Width="300" Margin="8,8,8,8"> |
101 | 100 | <Grid.Resources> |
|
140 | 139 | </Grid> |
141 | 140 |
|
142 | 141 | </materialDesign:PopupBox> |
143 | | - |
144 | 142 | <materialDesign:PopupBox |
145 | 143 | Style="{StaticResource MaterialDesignMultiFloatingActionPopupBox}" |
146 | 144 | PlacementMode="BottomAndAlignCentres" |
|
169 | 167 | <Button ToolTip="Three">3</Button> |
170 | 168 | </StackPanel> |
171 | 169 | </materialDesign:PopupBox> |
| 170 | + |
| 171 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 172 | + Badge |
| 173 | + </TextBlock> |
172 | 174 | <materialDesign:Badged Badge="3"> |
173 | 175 | <Button>MAIL</Button> |
174 | 176 | </materialDesign:Badged> |
175 | | - |
176 | 177 | <materialDesign:Badged Badge="{materialDesign:PackIcon Heart}" |
177 | 178 | BadgeColorZoneMode="Accent"> |
178 | 179 | <Button>LOVE</Button> |
179 | 180 | </materialDesign:Badged> |
180 | | - |
181 | 181 | <materialDesign:Badged Badge="DANGER" |
182 | 182 | BadgeColorZoneMode="Dark"> |
183 | 183 | <Button>STATUS</Button> |
184 | 184 | </materialDesign:Badged> |
185 | | - <materialDesign:Badged |
186 | | - x:Name="CountingBadge" |
187 | | - BadgeColorZoneMode="PrimaryDark"> |
| 185 | + <materialDesign:Badged x:Name="CountingBadge" BadgeColorZoneMode="PrimaryDark"> |
188 | 186 | <Button Style="{StaticResource MaterialDesignRaisedLightButton}" |
189 | 187 | Click="CountingButton_OnClick">CLICK ME!</Button> |
190 | 188 | </materialDesign:Badged> |
191 | | - <Button Content="{materialDesign:PackIcon AirplaneTakeoff}" |
192 | | - |
193 | | - ToolTip="Icon"> |
194 | | - </Button> |
195 | 189 |
|
| 190 | + |
| 191 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 192 | + Button with icon |
| 193 | + </TextBlock> |
| 194 | + <Button Content="{materialDesign:PackIcon AirplaneTakeoff}" ToolTip="Icon" /> |
| 195 | + |
| 196 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 197 | + Custom ripples |
| 198 | + </TextBlock> |
196 | 199 | <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" |
197 | | - |
198 | 200 | Width="150" |
199 | 201 | ToolTip="Resource name: MaterialDesignRaisedAccentButton" |
200 | 202 | materialDesign:RippleAssist.Feedback="#DD000000">CUSTOM RIPPLE</Button> |
|
203 | 205 | Width="150" |
204 | 206 | ToolTip="Resource name: MaterialDesignRaisedAccentButton" |
205 | 207 | materialDesign:RippleAssist.IsDisabled="True">NO RIPPLE</Button> |
| 208 | + |
| 209 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 210 | + Repeat button |
| 211 | + </TextBlock> |
206 | 212 | <RepeatButton Width="100" |
207 | 213 | ToolTip="Resource name: MaterialDesignRaisedButton"> |
208 | 214 | REPEAT |
209 | 215 | </RepeatButton> |
| 216 | + |
| 217 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 218 | + Flat button |
| 219 | + </TextBlock> |
210 | 220 | <Button Style="{StaticResource MaterialDesignFlatButton}" Click="ButtonBase_OnClick" ToolTip="MaterialDesignFlatButton">ACCEPT</Button> |
211 | 221 | <Button Style="{StaticResource MaterialDesignFlatButton}" ToolTip="MaterialDesignFlatButton">CANCEL</Button> |
| 222 | + |
| 223 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 224 | + Button with progress |
| 225 | + </TextBlock> |
212 | 226 | <Grid Width="124"> |
213 | 227 | <Button Command="{Binding DismissComand}" |
214 | 228 | Style="{StaticResource MaterialDesignRaisedButton}" |
|
274 | 288 | materialDesign:ButtonProgressAssist.IsIndicatorVisible="True" |
275 | 289 | materialDesign:ButtonProgressAssist.Value="75" |
276 | 290 | Content="{materialDesign:PackIcon DotsHorizontal}" /> |
| 291 | + |
| 292 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 293 | + Action toggle button |
| 294 | + </TextBlock> |
277 | 295 | <ToggleButton Content="C" Style="{StaticResource MaterialDesignActionLightToggleButton}" IsChecked="True" |
278 | 296 | ToolTip="MaterialDesignActionLightToggleButton"/> |
279 | 297 | <ToggleButton Content="H" Style="{StaticResource MaterialDesignActionToggleButton}" |
|
298 | 316 | <materialDesign:PackIcon Kind="EmoticonHappy" /> |
299 | 317 | </materialDesign:ToggleButtonAssist.OnContent> |
300 | 318 | </ToggleButton> |
| 319 | + |
| 320 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 321 | + Radio button |
| 322 | + </TextBlock> |
301 | 323 | <RadioButton Style="{StaticResource MaterialDesignRadioButton}" VerticalAlignment="Center" Tag="True"> |
302 | 324 | <RadioButton.IsChecked> |
303 | 325 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}"> |
|
315 | 337 | IsEnabled="False"> |
316 | 338 | Disabled |
317 | 339 | </RadioButton> |
| 340 | + |
| 341 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 342 | + Checkbox |
| 343 | + </TextBlock> |
318 | 344 | <CheckBox Style="{StaticResource MaterialDesignCheckBox}" VerticalAlignment="Center"> |
319 | 345 | Check |
320 | 346 | </CheckBox> |
|
332 | 358 | IsEnabled="False" IsChecked="True"> |
333 | 359 | Disabled |
334 | 360 | </CheckBox> |
| 361 | + |
| 362 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 363 | + Switch Toggle |
| 364 | + </TextBlock> |
335 | 365 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center" |
336 | 366 | ToolTip="Default ToggleButton Style"/> |
337 | 367 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center" IsEnabled="False" /> |
|
355 | 385 | </materialDesign:ToggleButtonAssist.OnContent> |
356 | 386 | </ToggleButton> |
357 | 387 |
|
358 | | - |
| 388 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 389 | + Flat toggle |
| 390 | + </TextBlock> |
359 | 391 | <ToggleButton Style="{StaticResource MaterialDesignFlatToggleButton}" ToolTip="MaterialDesignFlatToggleButton"> |
360 | 392 | <materialDesign:PackIcon Kind="Paperclip" Height="21" Width="21" /> |
361 | 393 | </ToggleButton> |
|
370 | 402 | IsEnabled="False"> |
371 | 403 | <materialDesign:PackIcon Kind="Heart" Height="21" Width="21" /> |
372 | 404 | </ToggleButton> |
| 405 | + |
| 406 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 407 | + Tool toggles |
| 408 | + </TextBlock> |
373 | 409 | <ListBox Grid.Column="1" Grid.Row="0" Style="{StaticResource MaterialDesignToolToggleListBox}" SelectedIndex="0"> |
374 | 410 | <ListBox.ToolTip> |
375 | 411 | <StackPanel> |
|
409 | 445 | <materialDesign:PackIcon Kind="FormatUnderline"/> |
410 | 446 | </ListBoxItem> |
411 | 447 | </ListBox> |
| 448 | + |
| 449 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 450 | + Rating bar |
| 451 | + </TextBlock> |
412 | 452 | <materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" /> |
413 | 453 | <TextBlock Width="100" Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" /> |
414 | 454 | <materialDesign:RatingBar x:Name="CustomRatingBar" Max="3" Value="2" Orientation="Vertical"> |
|
427 | 467 | </codeDisplayer:XamlDisplayerPanel> |
428 | 468 | </UserControl> |
429 | 469 |
|
| 470 | + |
| 471 | + |
0 commit comments