|
274 | 274 | Style="{StaticResource MaterialDesignRaisedButton}"
|
275 | 275 | HorizontalAlignment="Left"
|
276 | 276 | materialDesign:ButtonProgressAssist.Value="{Binding DismissButtonProgress}"
|
| 277 | + materialDesign:ButtonProgressAssist.IsIndicatorVisible="True" |
277 | 278 | Visibility="{Binding ShowDismissButton, Converter={StaticResource BooleanToVisibilityConverter}}">
|
278 | 279 | <StackPanel Orientation="Horizontal">
|
279 | 280 | <TextBlock>DISMISS</TextBlock>
|
|
286 | 287 | />
|
287 | 288 | </Grid>
|
288 | 289 | </smtx:XamlDisplay>
|
289 |
| - |
290 |
| - <smtx:XamlDisplay Key="buttons_27"> |
| 290 | + |
| 291 | + <smtx:XamlDisplay Key="buttons_27" Margin="5 0 0 0"> |
| 292 | + <Grid Width="124"> |
| 293 | + <Button Style="{StaticResource MaterialDesignRaisedButton}" |
| 294 | + materialDesign:ButtonProgressAssist.Value="-1" |
| 295 | + materialDesign:ButtonProgressAssist.IsIndicatorVisible="True" |
| 296 | + materialDesign:ButtonProgressAssist.IsIndeterminate="True" |
| 297 | + Content="Indeterminate" Margin="2,0"/> |
| 298 | + </Grid> |
| 299 | + </smtx:XamlDisplay> |
| 300 | + <smtx:XamlDisplay Key="buttons_28"> |
291 | 301 | <StackPanel Orientation="Horizontal" smtx:XamlDisplay.Ignore="This">
|
292 | 302 | <!-- floating action button with progress -->
|
293 | 303 | <TextBlock Margin="24 0 0 0" VerticalAlignment="Center">Click Me:</TextBlock>
|
|
320 | 330 | </smtx:XamlDisplay>
|
321 | 331 |
|
322 | 332 | <TextBlock Margin="24 0 0 0" VerticalAlignment="Center">Variations:</TextBlock>
|
323 |
| - <smtx:XamlDisplay Key="buttons_28" Margin="16 0 0 0"> |
| 333 | + <smtx:XamlDisplay Key="buttons_29" Margin="16 0 0 0"> |
324 | 334 | <Button Style="{StaticResource MaterialDesignFloatingActionButton}"
|
325 | 335 | materialDesign:ButtonProgressAssist.IsIndicatorVisible="True"
|
326 | 336 | materialDesign:ButtonProgressAssist.Value="-1"
|
327 | 337 | materialDesign:ButtonProgressAssist.IsIndeterminate="True"
|
328 | 338 | Content="{materialDesign:PackIcon DotsHorizontal}" />
|
329 | 339 | </smtx:XamlDisplay>
|
330 |
| - <smtx:XamlDisplay Key="buttons_29" Margin="16 0 0 0"> |
| 340 | + <smtx:XamlDisplay Key="buttons_30" Margin="16 0 0 0"> |
331 | 341 | <Button Style="{StaticResource MaterialDesignFloatingActionAccentButton}"
|
332 | 342 | materialDesign:ButtonProgressAssist.IsIndicatorVisible="True"
|
333 | 343 | materialDesign:ButtonProgressAssist.Value="50"
|
334 | 344 | Content="{materialDesign:PackIcon DotsHorizontal}" />
|
335 | 345 | </smtx:XamlDisplay>
|
336 |
| - <smtx:XamlDisplay Key="buttons_30" Margin="16 0 0 0"> |
| 346 | + <smtx:XamlDisplay Key="buttons_31" Margin="16 0 0 0"> |
337 | 347 | <Button Style="{StaticResource MaterialDesignFloatingActionButton}"
|
338 | 348 | Background="#81d4fa"
|
339 | 349 | BorderBrush="#81d4fa"
|
|
344 | 354 | materialDesign:ButtonProgressAssist.IndicatorBackground="#ffcc80"
|
345 | 355 | Content="{materialDesign:PackIcon DotsHorizontal}" />
|
346 | 356 | </smtx:XamlDisplay>
|
347 |
| - <smtx:XamlDisplay Key="buttons_31" Margin="16 0 0 0"> |
| 357 | + <smtx:XamlDisplay Key="buttons_32" Margin="16 0 0 0"> |
348 | 358 | <Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
349 | 359 | materialDesign:ButtonProgressAssist.IsIndicatorVisible="True"
|
350 | 360 | materialDesign:ButtonProgressAssist.Value="75"
|
|
366 | 376 | <ColumnDefinition Width="1*" />
|
367 | 377 | </Grid.ColumnDefinitions>
|
368 | 378 | <StackPanel Grid.Row="0" Orientation="Horizontal">
|
369 |
| - <smtx:XamlDisplay Key="buttons_32" Margin="5 5 8 8"> |
| 379 | + <smtx:XamlDisplay Key="buttons_33" Margin="5 5 8 8"> |
370 | 380 | <ToggleButton Content="C" Style="{StaticResource MaterialDesignActionLightToggleButton}" IsChecked="True"
|
371 | 381 | ToolTip="MaterialDesignActionLightToggleButton"/>
|
372 | 382 | </smtx:XamlDisplay>
|
373 |
| - <smtx:XamlDisplay Key="buttons_33" Margin="0 5 8 8"> |
| 383 | + <smtx:XamlDisplay Key="buttons_34" Margin="0 5 8 8"> |
374 | 384 | <ToggleButton Content="H" Style="{StaticResource MaterialDesignActionToggleButton}"
|
375 | 385 | ToolTip="MaterialDesignActionToggleButton"/>
|
376 | 386 | </smtx:XamlDisplay>
|
377 |
| - <smtx:XamlDisplay Key="buttons_34" Margin="0 5 8 8"> |
| 387 | + <smtx:XamlDisplay Key="buttons_35" Margin="0 5 8 8"> |
378 | 388 | <!-- checkbox style same as toggle button -->
|
379 | 389 | <CheckBox Content="E" Style="{StaticResource MaterialDesignActionDarkCheckBox}"
|
380 | 390 | ToolTip="MaterialDesignActionDarkCheckBox"/>
|
381 | 391 | </smtx:XamlDisplay>
|
382 |
| - <smtx:XamlDisplay Key="buttons_35" Margin="0 5 8 8"> |
| 392 | + <smtx:XamlDisplay Key="buttons_36" Margin="0 5 8 8"> |
383 | 393 | <ToggleButton Content="C" Style="{StaticResource MaterialDesignActionAccentToggleButton}"
|
384 | 394 | IsChecked="True"
|
385 | 395 | ToolTip="MaterialDesignActionAccentToggleButton"/>
|
386 | 396 | </smtx:XamlDisplay>
|
387 |
| - <smtx:XamlDisplay Key="buttons_36" Margin="0 5 8 8"> |
| 397 | + <smtx:XamlDisplay Key="buttons_37" Margin="0 5 8 8"> |
388 | 398 | <ToggleButton Content="K" Style="{StaticResource MaterialDesignActionToggleButton}" IsEnabled="False"
|
389 | 399 | ToolTip="MaterialDesignActionToggleButton"/>
|
390 | 400 | </smtx:XamlDisplay>
|
391 |
| - <smtx:XamlDisplay Key="buttons_37" Margin="0 5 8 8"> |
| 401 | + <smtx:XamlDisplay Key="buttons_38" Margin="0 5 8 8"> |
392 | 402 | <ToggleButton Style="{StaticResource MaterialDesignActionToggleButton}"
|
393 | 403 | ToolTip="MaterialDesignActionToggleButton">
|
394 | 404 | <Image Source="Resources/ProfilePic.jpg"></Image>
|
395 | 405 | </ToggleButton>
|
396 | 406 | </smtx:XamlDisplay>
|
397 | 407 | <TextBlock Margin="16 0 8 0" VerticalAlignment="Center">Customise On Content:</TextBlock>
|
398 |
| - <smtx:XamlDisplay Key="buttons_38"> |
| 408 | + <smtx:XamlDisplay Key="buttons_39"> |
399 | 409 | <ToggleButton Style="{StaticResource MaterialDesignActionToggleButton}"
|
400 | 410 | ToolTip="MaterialDesignActionLightToggleButton">
|
401 | 411 | <ToggleButton.Content>
|
|
408 | 418 | </smtx:XamlDisplay>
|
409 | 419 | </StackPanel>
|
410 | 420 | <StackPanel Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Margin="0 16 0 0" Orientation="Horizontal">
|
411 |
| - <smtx:XamlDisplay Key="buttons_39" Margin="5 5 8 8" VerticalAlignment="Center"> |
| 421 | + <smtx:XamlDisplay Key="buttons_40" Margin="5 5 8 8" VerticalAlignment="Center"> |
412 | 422 | <RadioButton Style="{StaticResource MaterialDesignRadioButton}" Tag="True">
|
413 | 423 | <RadioButton.IsChecked>
|
414 | 424 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}">
|
|
420 | 430 | Radio
|
421 | 431 | </RadioButton>
|
422 | 432 | </smtx:XamlDisplay>
|
423 |
| - <smtx:XamlDisplay Key="buttons_40" Margin="0 5 8 8" VerticalAlignment="Center"> |
| 433 | + <smtx:XamlDisplay Key="buttons_41" Margin="0 5 8 8" VerticalAlignment="Center"> |
424 | 434 | <RadioButton Style="{StaticResource MaterialDesignRadioButton}" >
|
425 | 435 | Ga Ga
|
426 | 436 | </RadioButton>
|
427 | 437 | </smtx:XamlDisplay>
|
428 |
| - <smtx:XamlDisplay Key="buttons_41" Margin="0 5 8 8" VerticalAlignment="Center"> |
| 438 | + <smtx:XamlDisplay Key="buttons_42" Margin="0 5 8 8" VerticalAlignment="Center"> |
429 | 439 | <RadioButton Style="{StaticResource MaterialDesignRadioButton}" IsEnabled="False">
|
430 | 440 | Disabled
|
431 | 441 | </RadioButton>
|
432 | 442 | </smtx:XamlDisplay>
|
433 |
| - <smtx:XamlDisplay Key="buttons_42" Margin="0 5 8 8" VerticalAlignment="Center"> |
| 443 | + <smtx:XamlDisplay Key="buttons_43" Margin="0 5 8 8" VerticalAlignment="Center"> |
434 | 444 | <CheckBox Style="{StaticResource MaterialDesignCheckBox}">
|
435 | 445 | Check
|
436 | 446 | </CheckBox>
|
437 | 447 | </smtx:XamlDisplay>
|
438 |
| - <smtx:XamlDisplay Key="buttons_43" Margin="0 5 8 8" VerticalAlignment="Center"> |
| 448 | + <smtx:XamlDisplay Key="buttons_44" Margin="0 5 8 8" VerticalAlignment="Center"> |
439 | 449 | <CheckBox Style="{StaticResource MaterialDesignCheckBox}" Tag="True">
|
440 | 450 | <CheckBox.IsChecked>
|
441 | 451 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}">
|
|
447 | 457 | Mate
|
448 | 458 | </CheckBox>
|
449 | 459 | </smtx:XamlDisplay>
|
450 |
| - <smtx:XamlDisplay Key="buttons_44" Margin="0 5 8 8" VerticalAlignment="Center"> |
| 460 | + <smtx:XamlDisplay Key="buttons_45" Margin="0 5 8 8" VerticalAlignment="Center"> |
451 | 461 | <CheckBox Style="{StaticResource MaterialDesignCheckBox}" IsEnabled="False" IsChecked="True">
|
452 | 462 | Disabled
|
453 | 463 | </CheckBox>
|
454 | 464 | </smtx:XamlDisplay>
|
455 | 465 | </StackPanel>
|
456 | 466 | <StackPanel Grid.Column="0" Grid.Row="2" Margin="0 16 0 0" Orientation="Horizontal">
|
457 |
| - <smtx:XamlDisplay Key="buttons_45" VerticalAlignment="Center" Margin="5 0 0 0"> |
| 467 | + <smtx:XamlDisplay Key="buttons_46" VerticalAlignment="Center" Margin="5 0 0 0"> |
458 | 468 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" ToolTip="Default ToggleButton Style"/>
|
459 | 469 | </smtx:XamlDisplay>
|
460 |
| - <smtx:XamlDisplay Key="buttons_46" VerticalAlignment="Center" Margin="8 0 0 0"> |
| 470 | + <smtx:XamlDisplay Key="buttons_47" VerticalAlignment="Center" Margin="8 0 0 0"> |
461 | 471 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" IsEnabled="False" />
|
462 | 472 | </smtx:XamlDisplay>
|
463 |
| - <smtx:XamlDisplay Key="buttons_47" VerticalAlignment="Center" Margin="8 0 0 0"> |
| 473 | + <smtx:XamlDisplay Key="buttons_48" VerticalAlignment="Center" Margin="8 0 0 0"> |
464 | 474 | <ToggleButton Style="{StaticResource MaterialDesignSwitchLightToggleButton}"
|
465 | 475 | ToolTip="MaterialDesignSwitchLightToggleButton" IsChecked="True" />
|
466 | 476 | </smtx:XamlDisplay>
|
467 |
| - <smtx:XamlDisplay Key="buttons_48" VerticalAlignment="Center" Margin="8 0 0 0"> |
| 477 | + <smtx:XamlDisplay Key="buttons_49" VerticalAlignment="Center" Margin="8 0 0 0"> |
468 | 478 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
469 | 479 | ToolTip="MaterialDesignSwitchToggleButton" IsChecked="True" />
|
470 | 480 | </smtx:XamlDisplay>
|
471 |
| - <smtx:XamlDisplay Key="buttons_49" VerticalAlignment="Center" Margin="8 0 0 0"> |
| 481 | + <smtx:XamlDisplay Key="buttons_50" VerticalAlignment="Center" Margin="8 0 0 0"> |
472 | 482 | <ToggleButton Style="{StaticResource MaterialDesignSwitchDarkToggleButton}"
|
473 | 483 | ToolTip="MaterialDesignSwitchDarkToggleButton" IsChecked="True" />
|
474 | 484 | </smtx:XamlDisplay>
|
475 |
| - <smtx:XamlDisplay Key="buttons_50" VerticalAlignment="Center" Margin="8 0 0 0"> |
| 485 | + <smtx:XamlDisplay Key="buttons_51" VerticalAlignment="Center" Margin="8 0 0 0"> |
476 | 486 | <ToggleButton Style="{StaticResource MaterialDesignSwitchAccentToggleButton}"
|
477 | 487 | ToolTip="MaterialDesignSwitchAccentToggleButton" IsChecked="True" />
|
478 | 488 | </smtx:XamlDisplay>
|
479 |
| - <smtx:XamlDisplay Key="buttons_51" VerticalAlignment="Center" Margin="8 0 0 0" > |
| 489 | + <smtx:XamlDisplay Key="buttons_52" VerticalAlignment="Center" Margin="8 0 0 0" > |
480 | 490 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
481 | 491 | ToolTip="MaterialDesignSwitchToggleButton with Content and ToggleButtonAssist.OnContent">
|
482 | 492 | <materialDesign:PackIcon Kind="Pin" RenderTransformOrigin=".5,.5">
|
|
491 | 501 | </smtx:XamlDisplay>
|
492 | 502 | </StackPanel>
|
493 | 503 | <StackPanel Grid.Column="0" Grid.Row="3" Margin="0 16 0 0" Orientation="Horizontal">
|
494 |
| - <smtx:XamlDisplay Key="buttons_52" Margin="5 0 0 0"> |
| 504 | + <smtx:XamlDisplay Key="buttons_53" Margin="5 0 0 0"> |
495 | 505 | <ToggleButton Style="{StaticResource MaterialDesignFlatToggleButton}" ToolTip="MaterialDesignFlatToggleButton">
|
496 | 506 | <materialDesign:PackIcon Kind="Paperclip" Height="21" Width="21" />
|
497 | 507 | </ToggleButton>
|
498 | 508 | </smtx:XamlDisplay>
|
499 |
| - <smtx:XamlDisplay Key="buttons_53" Margin="8 0 0 0" > |
| 509 | + <smtx:XamlDisplay Key="buttons_54" Margin="8 0 0 0" > |
500 | 510 | <ToggleButton Style="{StaticResource MaterialDesignFlatPrimaryToggleButton}"
|
501 | 511 | ToolTip="MaterialDesignFlatPrimaryToggleButton"
|
502 | 512 | IsChecked="True">
|
503 | 513 | <materialDesign:PackIcon Kind="Heart" Height="21" Width="21" />
|
504 | 514 | </ToggleButton>
|
505 | 515 | </smtx:XamlDisplay>
|
506 |
| - <smtx:XamlDisplay Key="buttons_54" Margin="8 0 0 0"> |
| 516 | + <smtx:XamlDisplay Key="buttons_55" Margin="8 0 0 0"> |
507 | 517 | <ToggleButton Style="{StaticResource MaterialDesignFlatPrimaryToggleButton}"
|
508 | 518 | ToolTip="MaterialDesignFlatPrimaryToggleButton"
|
509 | 519 | IsEnabled="False">
|
|
512 | 522 | </smtx:XamlDisplay>
|
513 | 523 | </StackPanel>
|
514 | 524 |
|
515 |
| - <smtx:XamlDisplay Key="buttons_55" Grid.Column="1" Grid.Row="0" Margin="25,0,0,0" HorizontalAlignment="Left"> |
| 525 | + <smtx:XamlDisplay Key="buttons_56" Grid.Column="1" Grid.Row="0" Margin="25,0,0,0" HorizontalAlignment="Left"> |
516 | 526 | <!-- the following based on https://material.io/guidelines/components/buttons.html#buttons-toggle-buttons -->
|
517 | 527 | <ListBox Style="{StaticResource MaterialDesignToolToggleListBox}" SelectedIndex="0">
|
518 | 528 | <ListBox.ToolTip>
|
|
536 | 546 | </ListBoxItem>
|
537 | 547 | </ListBox>
|
538 | 548 | </smtx:XamlDisplay>
|
539 |
| - <smtx:XamlDisplay Key="buttons_56" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left"> |
| 549 | + <smtx:XamlDisplay Key="buttons_57" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left"> |
540 | 550 | <ListBox SelectionMode="Extended" Style="{StaticResource MaterialDesignToolToggleFlatListBox}">
|
541 | 551 | <ListBox.ToolTip>
|
542 | 552 | <StackPanel>
|
|
561 | 571 | <Border Grid.Row="9" Margin="0 16 0 0" BorderThickness="0 1 0 0" BorderBrush="{DynamicResource MaterialDesignDivider}" />
|
562 | 572 | <TextBlock Margin="0 32 0 0" Grid.Row="9" Style="{StaticResource MaterialDesignHeadlineTextBlock}">Rating bar</TextBlock>
|
563 | 573 | <StackPanel Grid.Row="10" Margin="0 16 0 0" Orientation="Horizontal">
|
564 |
| - <smtx:XamlDisplay Key="buttons_57" VerticalContentAlignment="Top" Margin="5 0 0 5"> |
| 574 | + <smtx:XamlDisplay Key="buttons_58" VerticalContentAlignment="Top" Margin="5 0 0 5"> |
565 | 575 | <materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" />
|
566 | 576 | </smtx:XamlDisplay>
|
567 | 577 | <TextBlock Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" Margin="10,2,0,0" />
|
568 |
| - <smtx:XamlDisplay Key="buttons_58" Margin="24 0 0 5"> |
| 578 | + <smtx:XamlDisplay Key="buttons_59" Margin="24 0 0 5"> |
569 | 579 | <materialDesign:RatingBar x:Name="CustomRatingBar" Max="3" Value="2" Orientation="Vertical">
|
570 | 580 | <materialDesign:RatingBar.ValueItemTemplate>
|
571 | 581 | <DataTemplate DataType="system:Int32">
|
|
0 commit comments