Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ui:Page
<ui:Page
x:Class="iNKORE.UI.WPF.Modern.Gallery.Pages.Controls.Windows.MenuFlyoutPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Expand Down Expand Up @@ -137,5 +137,29 @@
</ui:FlyoutService.Flyout>
</Button>
</local:ControlExample>
<local:ControlExample
x:Name="Example6"
FontFamily="Segoe UI"
HeaderText="A MenuFlyout with RadioMenuFlyoutItems"
>
<Button x:Name="Control6" Content="Options">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<ui:RadioMenuItem Header="Landscape" GroupName="OrientationGroup"/>
<ui:RadioMenuItem
Header="Portrait"
IsChecked="True"
GroupName="OrientationGroup" />
<Separator />
<ui:RadioMenuItem Header="Small icons" GroupName="SizeGroup" />
<ui:RadioMenuItem
Header="Medium icons"
IsChecked="True"
GroupName="SizeGroup" />
<ui:RadioMenuItem Header="Large icons" GroupName="SizeGroup" />
</ui:MenuFlyout>
</ui:FlyoutService.Flyout>
</Button>
</local:ControlExample>
</StackPanel>
</ui:Page>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using iNKORE.UI.WPF.Modern.Controls;
using iNKORE.UI.WPF.Modern.Controls;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
Expand Down Expand Up @@ -71,6 +71,7 @@ public void UpdateExampleCode()
Example3.Xaml = Example3Xaml;
Example4.Xaml = Example4Xaml;
Example5.Xaml = Example5Xaml;
Example6.Xaml = Example6Xaml;
}

public string Example1Xaml => $@"
Expand Down Expand Up @@ -98,7 +99,7 @@ public void UpdateExampleCode()
";

public string Example2Xaml => $@"
<Button x:Name=""Control2"" Content=""Options"">
<Button Content=""Options"">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<MenuItem Header=""Reset"" />
Expand All @@ -119,7 +120,7 @@ public void UpdateExampleCode()
";

public string Example3Xaml => $@"
<Button x:Name=""Control3"" Content=""File Options"">
<Button Content=""File Options"">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<MenuItem Header=""Open"" />
Expand All @@ -138,7 +139,7 @@ public void UpdateExampleCode()
";

public string Example4Xaml => $@"
<Button x:Name=""Control4"" Content=""Edit Options"">
<Button Content=""Edit Options"">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<MenuItem Header=""Share"">
Expand All @@ -165,7 +166,7 @@ public void UpdateExampleCode()
";

public string Example5Xaml => $@"
<Button x:Name=""Control5"" Content=""Edit Options"">
<Button Content=""Edit Options"">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<MenuItem Header=""Share"" InputGestureText=""Ctrl+S"">
Expand Down Expand Up @@ -195,6 +196,21 @@ public void UpdateExampleCode()
</ui:MenuFlyout>
</ui:FlyoutService.Flyout>
</Button>
";

public string Example6Xaml => $@"
<Button Content=""Options"">
<ui:FlyoutService.Flyout>
<ui:MenuFlyout>
<ui:RadioMenuItem Header=""Landscape"" GroupName=""OrientationGroup""/>
<ui:RadioMenuItem Header=""Portrait"" GroupName=""OrientationGroup"" IsChecked=""True"" />
<Separator />
<ui:RadioMenuItem Header=""Small icons"" GroupName=""SizeGroup"" />
<ui:RadioMenuItem Header=""Medium icons"" GroupName=""SizeGroup"" IsChecked=""True"" />
<ui:RadioMenuItem Header=""Large icons"" GroupName=""SizeGroup"" />
</ui:MenuFlyout>
</ui:FlyoutService.Flyout>
</Button>
";

#endregion
Expand Down
Loading