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