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