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

Graphical bug while resizing the window #530

Closed
clementpoiret opened this issue Oct 28, 2016 · 2 comments
Closed

Graphical bug while resizing the window #530

clementpoiret opened this issue Oct 28, 2016 · 2 comments

Comments

@clementpoiret
Copy link

Hi !

I'm encountering a bad issue with materialdesigninxaml toolkit that happen with every apps using it, even your demo. When I maximize the window, the app appears to be glitchy like in this screenshot :
screenshot 39

@ButchersBoy
Copy link
Collaborator

You might want to force software rendering...

RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;

@clementpoiret
Copy link
Author

clementpoiret commented Oct 28, 2016

Ohh thanks for the tip, I used this and all is fine now :)

public partial class App : Application
{
    public bool ForceSoftwareRendering
    {
        get
        {
            int renderingTier = (System.Windows.Media.RenderCapability.Tier >> 16);
            return renderingTier == 0;
        }
    }
    protected override void OnStartup(StartupEventArgs e)
    {
        if (ForceSoftwareRendering)
            RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;
    }
}

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