|
604 | 604 | Style="{StaticResource ToolBarAppBarButtonFlyoutStyle}"
|
605 | 605 | ToolTipService.ToolTip="{helpers:ResourceString Name=Layout}">
|
606 | 606 |
|
607 |
| - <AppBarButton.Icon> |
608 |
| - <FontIcon Glyph="" /> |
609 |
| - </AppBarButton.Icon> |
| 607 | + <local:OpacityIcon Style="{x:Bind ViewModel.LayoutOpacityIcon, Mode=OneWay}" /> |
610 | 608 |
|
611 | 609 | <AppBarButton.Flyout>
|
612 | 610 | <Flyout contract8Present:ShouldConstrainToRootBounds="False" Placement="Bottom">
|
|
662 | 660 | Tapped="{x:Bind Commands.LayoutDetails.ExecuteTapped}"
|
663 | 661 | Text="{x:Bind Commands.LayoutDetails.Label}" />
|
664 | 662 |
|
665 |
| - <!-- Tiles Layout --> |
| 663 | + <!-- Columns Layout --> |
666 | 664 | <RadioButton
|
667 | 665 | Grid.Row="1"
|
668 | 666 | Grid.Column="0"
|
|
672 | 670 | Padding="0"
|
673 | 671 | HorizontalContentAlignment="Center"
|
674 | 672 | VerticalContentAlignment="Center"
|
| 673 | + AutomationProperties.Name="{x:Bind Commands.LayoutColumns.AutomationName}" |
| 674 | + Command="{x:Bind Commands.LayoutColumns}" |
| 675 | + CornerRadius="{StaticResource ControlCornerRadius}" |
| 676 | + GroupName="LayoutRadio" |
| 677 | + IsChecked="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
| 678 | + Style="{StaticResource DefaultToggleButtonStyle}" |
| 679 | + ToolTipService.ToolTip="{x:Bind Commands.LayoutColumns.LabelWithHotKey, Mode=OneWay}"> |
| 680 | + <local:OpacityIcon |
| 681 | + Width="20" |
| 682 | + Height="20" |
| 683 | + IsSelected="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
| 684 | + Style="{x:Bind Commands.LayoutColumns.OpacityStyle}" /> |
| 685 | + </RadioButton> |
| 686 | + |
| 687 | + <TextBlock |
| 688 | + x:Name="NavToolbarColumnsHeader" |
| 689 | + Grid.Row="1" |
| 690 | + Grid.Column="1" |
| 691 | + VerticalAlignment="Center" |
| 692 | + Tapped="{x:Bind Commands.LayoutColumns.ExecuteTapped}" |
| 693 | + Text="{x:Bind Commands.LayoutColumns.Label}" /> |
| 694 | + |
| 695 | + <!-- Tiles Layout --> |
| 696 | + <RadioButton |
| 697 | + Grid.Row="2" |
| 698 | + Grid.Column="0" |
| 699 | + Width="36" |
| 700 | + Height="32" |
| 701 | + MinWidth="0" |
| 702 | + Padding="0" |
| 703 | + HorizontalContentAlignment="Center" |
| 704 | + VerticalContentAlignment="Center" |
675 | 705 | AutomationProperties.Name="{x:Bind Commands.LayoutTiles.AutomationName}"
|
676 | 706 | Command="{x:Bind Commands.LayoutTiles}"
|
677 | 707 | CornerRadius="{StaticResource ControlCornerRadius}"
|
|
688 | 718 |
|
689 | 719 | <TextBlock
|
690 | 720 | x:Name="NavToolbarTilesHeader"
|
691 |
| - Grid.Row="1" |
| 721 | + Grid.Row="2" |
692 | 722 | Grid.Column="1"
|
693 | 723 | VerticalAlignment="Center"
|
694 | 724 | Tapped="{x:Bind Commands.LayoutTiles.ExecuteTapped}"
|
695 | 725 | Text="{x:Bind Commands.LayoutTiles.Label}" />
|
696 | 726 |
|
697 | 727 | <!-- Grid Small Layout -->
|
698 | 728 | <RadioButton
|
699 |
| - Grid.Row="2" |
700 |
| - Grid.Column="0" |
| 729 | + Grid.Row="0" |
| 730 | + Grid.Column="3" |
701 | 731 | Width="36"
|
702 | 732 | Height="32"
|
703 | 733 | MinWidth="0"
|
|
720 | 750 |
|
721 | 751 | <TextBlock
|
722 | 752 | x:Name="NavToolbarSmallIconsHeader"
|
723 |
| - Grid.Row="2" |
724 |
| - Grid.Column="1" |
| 753 | + Grid.Row="0" |
| 754 | + Grid.Column="4" |
725 | 755 | VerticalAlignment="Center"
|
726 | 756 | Tapped="{x:Bind Commands.LayoutGridSmall.ExecuteTapped}"
|
727 | 757 | Text="{x:Bind Commands.LayoutGridSmall.Label}" />
|
728 | 758 |
|
729 | 759 | <!-- Grid Medium Layout -->
|
730 | 760 | <RadioButton
|
731 |
| - Grid.Row="0" |
| 761 | + Grid.Row="1" |
732 | 762 | Grid.Column="3"
|
733 | 763 | Width="36"
|
734 | 764 | Height="32"
|
|
752 | 782 |
|
753 | 783 | <TextBlock
|
754 | 784 | x:Name="NavToolbarMediumIconsHeader"
|
755 |
| - Grid.Row="0" |
| 785 | + Grid.Row="1" |
756 | 786 | Grid.Column="4"
|
757 | 787 | VerticalAlignment="Center"
|
758 | 788 | Tapped="{x:Bind Commands.LayoutGridMedium.ExecuteTapped}"
|
|
770 | 800 |
|
771 | 801 | <!-- Grid Large Layout -->
|
772 | 802 | <RadioButton
|
773 |
| - Grid.Row="1" |
| 803 | + Grid.Row="2" |
774 | 804 | Grid.Column="3"
|
775 | 805 | Width="36"
|
776 | 806 | Height="32"
|
|
794 | 824 |
|
795 | 825 | <TextBlock
|
796 | 826 | x:Name="NavToolbarLargeIconsHeader"
|
797 |
| - Grid.Row="1" |
| 827 | + Grid.Row="2" |
798 | 828 | Grid.Column="4"
|
799 | 829 | VerticalAlignment="Center"
|
800 | 830 | Tapped="{x:Bind Commands.LayoutGridLarge.ExecuteTapped}"
|
801 | 831 | Text="{x:Bind Commands.LayoutGridLarge.Label}" />
|
802 | 832 |
|
803 |
| - <!-- Columns Layout --> |
804 |
| - <RadioButton |
805 |
| - Grid.Row="2" |
806 |
| - Grid.Column="3" |
807 |
| - Width="36" |
808 |
| - Height="32" |
809 |
| - MinWidth="0" |
810 |
| - Padding="0" |
811 |
| - HorizontalContentAlignment="Center" |
812 |
| - VerticalContentAlignment="Center" |
813 |
| - AutomationProperties.Name="{x:Bind Commands.LayoutColumns.AutomationName}" |
814 |
| - Command="{x:Bind Commands.LayoutColumns}" |
815 |
| - CornerRadius="{StaticResource ControlCornerRadius}" |
816 |
| - GroupName="LayoutRadio" |
817 |
| - IsChecked="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
818 |
| - Style="{StaticResource DefaultToggleButtonStyle}" |
819 |
| - ToolTipService.ToolTip="{x:Bind Commands.LayoutColumns.LabelWithHotKey, Mode=OneWay}"> |
820 |
| - <local:OpacityIcon |
821 |
| - Width="20" |
822 |
| - Height="20" |
823 |
| - IsSelected="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
824 |
| - Style="{x:Bind Commands.LayoutColumns.OpacityStyle}" /> |
825 |
| - </RadioButton> |
826 |
| - |
827 |
| - <TextBlock |
828 |
| - x:Name="NavToolbarColumnsHeader" |
829 |
| - Grid.Row="2" |
830 |
| - Grid.Column="4" |
831 |
| - VerticalAlignment="Center" |
832 |
| - Tapped="{x:Bind Commands.LayoutColumns.ExecuteTapped}" |
833 |
| - Text="{x:Bind Commands.LayoutColumns.Label}" /> |
834 |
| - |
835 | 833 | </Grid>
|
836 | 834 |
|
837 | 835 | <!-- (Divider) -->
|
|
0 commit comments