Acrylic effect dont work on Windows 11 (with new Windows11 theme)

1 Answer 128 Views
Window
Sergey
Top achievements
Rank 1
Sergey asked on 13 Jul 2022, 03:15 PM | edited on 13 Jul 2022, 03:20 PM

Windows 11 build 22000.795

XAML Code:

<telerik:RadWindow x:Class="WpfApp1.MainWindow" 
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
                   xmlns:helpers="clr-namespace:Telerik.Windows.Controls.Theming.Helpers;assembly=Telerik.Windows.Controls" 
                   helpers:WindowEffectsHelper.BackdropMaterial="Acrylic" 
                   Header="RadWindow" Style="{StaticResource RadWindowStyle}" Width="400" Height="400">
    <Grid>
        
    </Grid>
</telerik:RadWindow>

 

App.xaml file:
<Application x:Class="WpfApp1.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:WpfApp1"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Data.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

App.xaml.cs file:

using System.Windows;

namespace WpfApp1
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            new MainWindow().Show();
            base.OnStartup(e);
        }
    }
}

Result - see in attachment (no effect)

 

 

1 Answer, 1 is accepted

Sort by
0
Vicky
Telerik team
answered on 14 Jul 2022, 04:48 PM

Hi Sergey,

Thank you for the provided resources!

The WindowEffectsHelper depends on a Win32 API and a specific version of Windows 11 which appears to be a preview one.
This is the reason why the Acrylic effect does not work with the version you specified. I've gone ahead and logged a public Feature Request for improving the support for this effect which you can use to cast your vote and subscribe to status updates. It is already brought to the attention of our development team.

In the meantime, if this effect is something of great importance for your application, we can help you with an alternative solution using the ThemeEffectsHelper class which is already used for the Fluent theme's acrylic effect. It will require modifying the default control template of the RadWindow. Please, do not hesitate to contact us if such help is needed.

Best Regards,
Vicky
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Window
Asked by
Sergey
Top achievements
Rank 1
Answers by
Vicky
Telerik team
Share this question
or