|
910 | 910 | </TransitionCollection>
|
911 | 911 | </Custom:TabView.ItemContainerTransitions>
|
912 | 912 | <Custom:TabViewItem Tapped="TabViewItem_Tapped" Template="{StaticResource TabViewItemFluentTemplate}" BorderThickness="0" Header="File" MinWidth="48" MinHeight="32" Width="Auto">
|
913 |
| - <Custom:TabViewItem.Resources> |
914 |
| - <MenuFlyout Placement="BottomEdgeAlignedLeft" Closed="MenuFlyout_Closed" x:Key="FileClickFlyout"> |
915 |
| - <MenuFlyoutItem x:Name="NewWindowButton" Click="NewWindowButton_Click" Text="Open new window" Icon="NewWindow"/> |
916 |
| - <MenuFlyoutItem x:Name="SettingsButton" Click="SettingsButton_Click" Text="Settings" Icon="Setting"/> |
917 |
| - <MenuFlyoutSeparator/> |
918 |
| - <MenuFlyoutItem x:Name="ExitButton" Click="ExitButton_Click" Text="Close Files"> |
919 |
| - <MenuFlyoutItem.Icon> |
920 |
| - <FontIcon Glyph=""/> |
921 |
| - </MenuFlyoutItem.Icon> |
922 |
| - </MenuFlyoutItem> |
923 |
| - </MenuFlyout> |
924 |
| - </Custom:TabViewItem.Resources> |
| 913 | + <FlyoutBase.AttachedFlyout> |
| 914 | + <Flyout Closed="MenuFlyout_Closed"> |
| 915 | + <Flyout.Content> |
| 916 | + <ListView SelectionChanged="ListView_SelectionChanged" SelectionMode="Single"> |
| 917 | + <ListViewItem Padding="12,8" x:Name="NewWindowButton" IsTapEnabled="true" Tapped="NewWindowButton_Click"> |
| 918 | + <StackPanel Spacing="14" Orientation="Horizontal"> |
| 919 | + <FontIcon Glyph=""/> |
| 920 | + <StackPanel Orientation="Vertical"> |
| 921 | + <TextBlock FontSize="14" FontWeight="Medium" Text="Open new window"/> |
| 922 | + <TextBlock Text="Creates a new instance of Files"/> |
| 923 | + </StackPanel> |
| 924 | + </StackPanel> |
| 925 | + </ListViewItem> |
| 926 | + <ListViewItem Padding="12,8" x:Name="SettingsButton" IsTapEnabled="true" Tapped="SettingsButton_Click"> |
| 927 | + <StackPanel Spacing="14" Orientation="Horizontal"> |
| 928 | + <FontIcon Glyph=""/> |
| 929 | + <StackPanel Orientation="Vertical"> |
| 930 | + <TextBlock FontSize="14" FontWeight="Medium" Text="Settings"/> |
| 931 | + <TextBlock Text="Make changes to app preferences"/> |
| 932 | + </StackPanel> |
| 933 | + </StackPanel> |
| 934 | + </ListViewItem> |
| 935 | + <ListViewItem Padding="12,8" x:Name="ExitButton" IsTapEnabled="true" Tapped="ExitButton_Click"> |
| 936 | + <StackPanel Spacing="14" Orientation="Horizontal"> |
| 937 | + <FontIcon Glyph=""/> |
| 938 | + <StackPanel Orientation="Vertical"> |
| 939 | + <TextBlock FontSize="14" FontWeight="Medium" Text="Close Files"/> |
| 940 | + <TextBlock Text="Closes this window"/> |
| 941 | + </StackPanel> |
| 942 | + </StackPanel> |
| 943 | + </ListViewItem> |
| 944 | + </ListView> |
| 945 | + </Flyout.Content> |
| 946 | + |
| 947 | + </Flyout> |
| 948 | + </FlyoutBase.AttachedFlyout> |
925 | 949 | </Custom:TabViewItem>
|
926 | 950 | <Custom:TabViewItem DoubleTapped="RibbonItem_DoubleTapped" x:Name="HomeRibbonItem" Template="{StaticResource TabViewItemFluentTemplate}" IsSelected="True" BorderThickness="0" Header="Home" MinWidth="48" MinHeight="32" Width="Auto">
|
927 | 951 | <interactivity:Interaction.Behaviors>
|
|
0 commit comments