This is a migrated thread and some comments may be shown as answers.

Set "IsAcrylic" to false

2 Answers 142 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 22 Mar 2020, 03:22 PM

Hi, can someone show me a simple way how to set "mat:ThemeEffectsHelper.IsAcrylic" to false? I was not able to create a new style based on DialogWindowStyle without getting errors.

Thanks!

Regards
Heiko

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 25 Mar 2020, 10:36 AM

Hi Heiko,

You can use the following code to globally disable the acrylic effect.

public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        Telerik.Windows.Controls.MaterialControls.ThemeEffectsHelper.IsAcrylicEnabled = false;
        base.OnStartup(e);
    }
}
Give this approach a try and let me know if it works for you.

Regards,
Dinko
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 06 Apr 2020, 01:49 PM

Thanks Dinko, that helped!

Stay safe, stay healthy
Heiko

Tags
FileDialogs
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Share this question
or