Skip to content

TonyHenrique/UWPFullScreenAcrylicApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

UWPFullScreenAcrylicApp

Sample to show Full Screen Acrylic App appearance

Please download this small repository, build and run it.

I noticed that on UWP, That background Window Acrylic effect does not work on a Page started at Full screen. Only after you restore it, the effect appears. Can you check this?

When start in Full Screen it seems that Acrylic effect is not drawn; Then try to restore the window, you will notice that the Acrylic effect works.

These are the versions of the software I am using:

Microsoft Windows [versão 10.0.17133.1]

Target version: Windows 10, version 1803 (10.0; Build 17125)

Min version: Windows 10, version 1803 (10.0; Build 17125)

Microsoft Visual Studio Community 2017 Preview Version 15.7.0 Preview 2.0

I Enabled it using this code:

    public App()
    {
        Windows.UI.ViewManagement.ApplicationView.PreferredLaunchWindowingMode =
            Windows.UI.ViewManagement.ApplicationViewWindowingMode.FullScreen
            ;

        this.InitializeComponent();
        this.Suspending += OnSuspending;
    } 

and on the page:

<Page
x:Class="FullScreenAcrylicApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FullScreenAcrylicApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{StaticResource SystemControlAcrylicWindowBrush}">

<Grid>
    <TextBlock>HELLO WORLD. 
        Check if the Acrylic Background is working.
        Restore window, maximize it.
    </TextBlock>

</Grid>
</Page>

More version information:

Microsoft Visual Studio Community 2017 Preview Version 15.7.0 Preview 2.0 VisualStudio.15.Preview/15.7.0-pre.2.0+27520.0 Microsoft .NET Framework Version 4.7.03056

Installed Version: Community

About

Sample to show Full Screen Acrylic App appearance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages