|
687 | 687 | <controls:ThemedIcon Style="{x:Bind ViewModel.LayoutThemedIcon, Mode=OneWay}" /> |
688 | 688 |
|
689 | 689 | <AppBarButton.Flyout> |
690 | | - <Flyout contract8Present:ShouldConstrainToRootBounds="False" Placement="Bottom"> |
| 690 | + <Flyout |
| 691 | + x:Name="LayoutFlyout" |
| 692 | + contract8Present:ShouldConstrainToRootBounds="False" |
| 693 | + Placement="Bottom"> |
691 | 694 | <StackPanel Spacing="12"> |
692 | 695 |
|
693 | 696 | <!-- Header --> |
|
699 | 702 | <!-- Details --> |
700 | 703 | <RadioButton |
701 | 704 | AutomationProperties.Name="{x:Bind Commands.LayoutDetails.AutomationName}" |
| 705 | + Click="LayoutButton_Click" |
702 | 706 | Command="{x:Bind Commands.LayoutDetails}" |
703 | 707 | GroupName="LayoutRadio" |
704 | 708 | IsChecked="{x:Bind ViewModel.IsDetailsLayout, Mode=OneWay}" |
|
722 | 726 | <!-- List --> |
723 | 727 | <RadioButton |
724 | 728 | AutomationProperties.Name="{x:Bind Commands.LayoutList.AutomationName}" |
| 729 | + Click="LayoutButton_Click" |
725 | 730 | Command="{x:Bind Commands.LayoutList}" |
726 | 731 | GroupName="LayoutRadio" |
727 | 732 | IsChecked="{x:Bind ViewModel.IsListLayout, Mode=OneWay}" |
|
746 | 751 | <!-- Cards --> |
747 | 752 | <RadioButton |
748 | 753 | AutomationProperties.Name="{x:Bind Commands.LayoutCards.AutomationName}" |
| 754 | + Click="LayoutButton_Click" |
749 | 755 | Command="{x:Bind Commands.LayoutCards}" |
750 | 756 | GroupName="LayoutRadio" |
751 | 757 | IsChecked="{x:Bind ViewModel.IsCardsLayout, Mode=OneWay}" |
|
770 | 776 | <!-- Grid --> |
771 | 777 | <RadioButton |
772 | 778 | AutomationProperties.Name="{x:Bind Commands.LayoutGrid.AutomationName}" |
| 779 | + Click="LayoutButton_Click" |
773 | 780 | Command="{x:Bind Commands.LayoutGrid}" |
774 | 781 | GroupName="LayoutRadio" |
775 | 782 | IsChecked="{x:Bind ViewModel.IsGridLayout, Mode=OneWay}" |
|
794 | 801 | <!-- Columns --> |
795 | 802 | <RadioButton |
796 | 803 | AutomationProperties.Name="{x:Bind Commands.LayoutColumns.AutomationName}" |
| 804 | + Click="LayoutButton_Click" |
797 | 805 | Command="{x:Bind Commands.LayoutColumns}" |
798 | 806 | GroupName="LayoutRadio" |
799 | 807 | IsChecked="{x:Bind ViewModel.IsColumnLayout, Mode=OneWay}" |
|
0 commit comments