Share via


open a wpf page Startup in full screen for desktop app

Question

Thursday, February 19, 2015 8:24 PM

I have a wpf desktop application using exclusively pages button_clicks and navigation services.  I would like the StartupUri page to open with page "maximized" and style="None", but I can't find the equivalent in a page class as in a window.

All replies (2)

Saturday, February 21, 2015 11:08 PM ✅Answered | 1 vote

 

  this.WindowState = WindowState.Maximized;

n.Wright

 this.WindowStyle = WindowStyle.None;

Sunday, February 22, 2015 2:57 PM ✅Answered

Thank You. Here is the way I got my "PageMain" to start up in full screen:

<Window x:Class="Frame_01.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" WindowState="Maximized"
        WindowStyle="None">
    <Grid Margin="0,0,0,0">
        <Frame Margin="0,0,0,0" Source="PageMain.xaml">    
        </Frame>        
    </Grid>
</Window>