-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ToggleMenuFlyoutItem): added DefaultStyleKey so that the correct …
…style is used
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ToggleMenu.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Page | ||
x:Class="UITests.Shared.Windows_UI_Xaml_Controls.Flyout.Flyout_ToggleMenu" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Windows_UI_Xaml_Controls.Flyout" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400"> | ||
|
||
<StackPanel Orientation="Horizontal" Grid.Row="1"> | ||
<AppBarButton Icon="Clock" Label="Test"> | ||
<AppBarButton.Flyout> | ||
<MenuFlyout x:Name="uiMenuDelay"> | ||
<ToggleMenuFlyoutItem x:Name="test1" Text="test 1"/> | ||
<ToggleMenuFlyoutItem x:Name="test2" Text="test 2" IsChecked="True"/> | ||
<ToggleMenuFlyoutItem x:Name="test3" Text="test 3"/> | ||
</MenuFlyout> | ||
</AppBarButton.Flyout> | ||
</AppBarButton> | ||
</StackPanel> | ||
</Page> |
29 changes: 29 additions & 0 deletions
29
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Flyout/Flyout_ToggleMenu.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Uno.UI.Samples.Controls; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 | ||
|
||
namespace UITests.Shared.Windows_UI_Xaml_Controls.Flyout | ||
{ | ||
[SampleControlInfo("Flyout", "Flyout_ToggleMenu")] | ||
public sealed partial class Flyout_ToggleMenu : Page | ||
{ | ||
public Flyout_ToggleMenu() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters