Skip to content

Commit b8e3556

Browse files
committed
chore: Full screen mode sample
1 parent 4f02303 commit b8e3556

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Window
3+
x:Class="WindowingSamples.FullScreenModeWindow"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:controls="using:WindowingSamples.Controls"
7+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
mc:Ignorable="d">
10+
11+
<Grid>
12+
<Grid.RowDefinitions>
13+
<RowDefinition Height="Auto" />
14+
<RowDefinition Height="*" />
15+
</Grid.RowDefinitions>
16+
<controls:WindowTitleControl Text="Full screen mode" Glyph="&#xE740;" />
17+
18+
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Spacing="8">
19+
<TextBlock HorizontalAlignment="Center" Text="This is a full screen window" FontSize="20" />
20+
<Button HorizontalAlignment="Center" Click="{x:Bind Close}">Close me</Button>
21+
</StackPanel>
22+
</Grid>
23+
</Window>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Microsoft.UI.Windowing;
2+
3+
namespace WindowingSamples;
4+
5+
/// <summary>
6+
/// An empty window that can be used on its own or navigated to within a Frame.
7+
/// </summary>
8+
public sealed partial class FullScreenModeWindow : Window
9+
{
10+
public FullScreenModeWindow()
11+
{
12+
InitializeComponent();
13+
}
14+
}

0 commit comments

Comments
 (0)