MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

DialogHost Show performance issues when using datagrid

Open
#2,211 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

DialogHost Show is having a performance issue when switching between two dialogs that contain a DataGrid. Tested on two computers.

Steps to reproduce:

  1. Button A -> DialogA (first init slow)
  2. Button A -> DialogA (no problem, fast)
  3. Button B -> DialogB (lags)
  4. Button B -> DialogB (no problem, fast)
    ...
  5. Button A -> DialogA (lag)
  6. Button B -> DialogB (lag)
  7. Button A -> DialogA (lag)
  8. Button B -> DialogB (lag
    ...

Test Repo created here:
https://github.com/stany9g/DataHostDemo

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

Reproduce the switching sequence in the linked DataHostDemo test repository, focusing on DialogHost Show with dialogs containing a DataGrid. Compare the first and repeated transitions between DialogA and DialogB, then identify and verify a change that removes the reported lag.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.