sourcechord / FluentWPF

Fluent Design System for WPF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Black Background when inactive

poochie89 opened this issue · comments

When the Window is inactive the Window shows a black background.

Hi, @poochie89

This is by design, and same as the acrylic behavior in UWP apps.

Workaround

You can customize Fallback color with FallbackColor property.
Please try the following code.

<fw:AcrylicWindow x:Class="FluentWPFSample.Views.AcrylicWindow"
                  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:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
                  xmlns:local="clr-namespace:FluentWPFSample.Views"
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                  Title="AcrylicWindow"
                  FallbackColor="Transparent"
                  Width="300"
                  Height="300"
                  mc:Ignorable="d">
    <Grid Background="#70FFFFFF">
        <TextBlock Margin="10"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Text="This is AcrylicWindow"
                   TextWrapping="Wrap" />
    </Grid>
</fw:AcrylicWindow>

I'll close this issue.
If you have any problems, please reopen this issue.