Set "IsAcrylic" to false

3 posts, 1 answers
  1. Heiko
    Heiko avatar
    55 posts
    Member since:
    Nov 2018

    Posted 22 Mar Link to this post

    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. Answer
    Dinko
    Admin
    Dinko avatar
    1183 posts

    Posted 25 Mar Link to this post

    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.
  3. Heiko
    Heiko avatar
    55 posts
    Member since:
    Nov 2018

    Posted 06 Apr in reply to Dinko Link to this post

    Thanks Dinko, that helped!

    Stay safe, stay healthy
    Heiko

Back to Top