File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
UI/WindowingSamples/WindowingSamples Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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 ="  " />
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 >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments