Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to disable Acrylic of AcrylicWindow? #143

Open
Armin2208 opened this issue Oct 2, 2021 · 1 comment
Open

Is there a way to disable Acrylic of AcrylicWindow? #143

Armin2208 opened this issue Oct 2, 2021 · 1 comment

Comments

@Armin2208
Copy link

Didn't found one yet, would be nice for people who use FluentWPF based application on VMWare.

@sourcechord
Copy link
Owner

Hi @Armin2208
Thanks for the feedback.
There is AcrylicAccentState property in AcrylicWindow class, it can chage the type of acrylic effect. If you set Gradient, acrylic effect will be disabled.

Is this suitable for your case?

<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"
                  AcrylicAccentState="Gradient"
                  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>

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants