<Window x:Class="JlsaVrViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="clr-namespace:Jlsa.VrViewer.Controls;assembly=Jlsa.VrViewer.Controls"
mc:Ignorable="d"
Title="MainWindow" Height="500" Width="1000">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button Grid.Row="0" Content="Load Jobsite" Click="LoadJobsiteButton_Click"/>
<controls:VrViewerControl Grid.Row="1" Name="VrViewerControl"/>
</Grid>
</Window>
<UserControl x:Class="Jlsa.VrViewer.Controls.VrViewerControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Jlsa.VrViewer.Controls"
mc:Ignorable="d"
d:DesignHeight="500" d:DesignWidth="1000">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ToolBarTray Background="Transparent" HorizontalAlignment="Stretch" Grid.ColumnSpan="2">
<ToolBar Background="Transparent" HorizontalAlignment="Stretch">
<Button Content="Afficher/Masquer liste des pieux" Margin="10,0,10,0"></Button>
<Button Grid.Column="1" x:Name="ResetPovButton" Content="Reinitialiser point de vue" Click="ResetPovButton_Click" Margin="10,0,10,0"/>
<Button Content="Activer/Desactiver rotation" Margin="10,0,10,0" x:Name="RotationButton" ></Button>
<Button Content="Exporter" Margin="10,0,10,0" x:Name="ExportButton"></Button>
<Button Content="Mode Plein Ecran" Margin="10,0,10,0" x:Name="FullScreenButton" Click="FullScreenButton_OnClick"></Button>
</ToolBar>
</ToolBarTray>
</Grid>
<WindowsFormsHost Grid.Row="1" Name="WinFormsHost"/>
</Grid>
</UserControl>
How to make the window on fullscreen when i click on FullScreenButton