MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Poor performance following ShadowAssist.CacheMode change #3616

Open
#3,840 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

### Bug explanation

It seems that specifically following commit #3616 to change the default ShadowAssist CacheMode behaviour, I find the performance of our WPF app to be a lot slower and laggy than it was before, particularly when it comes to animations such as those in the DialogHost flyouts. It's particularly bad after resizing the window or in full screen.

I'm trying to figure out the best way to replicate the old behaviour. I've tried to set a `CacheMode `with `EnableClearType` and `SnapsToDevicePixels` but it seems like I have to set this all the way down and just setting it on the window or main containing control doesn't work.

Would appreciate any guidance on this. Has anyone else had a similar problem or know the best way to handle the CacheMode property globally? Is that even the right approach or should it only be set for troublesome controls?

### Version

5.2.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing commit #3616 and reproducing the slowdown in the WPF app, focusing on DialogHost flyout animations after window resizing or entering full screen. Compare the CacheMode behavior with the previous version and determine whether the issue is global or limited to troublesome controls; done requires a reproducible cause and a documented handling approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.