Cannot disable DialogHost autofocus behavior.

Open Beginner friendly
#2,485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

Start in MaterialDesignThemes.Wpf/DialogHost.cs at the IsOpenPropertyChangedCallback around line 331, where dialogHost.FocusPopup() is called. Trace how DialogHost properties are declared and how opening behavior is tested elsewhere in the project. Done means callers can disable this autofocus behavior while existing dialogs retain their current default behavior.

Written by the indexing model from the issue text.

Description

enhancement up-for-grabs

There is currently no way to disable the "autofocus" behavior of the DialogHost.
This is conflicting with our own autofocusing efforts.

DialogHost.cs#L331

Please considering adding the ability to disable the dialogHost.FocusPopup(); call inside IsOpenPropertyChangedCallback when opening the a dialog.

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

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.

More from MaterialDesignInXAML/MaterialDesignInXamlToolkit

All issues in MaterialDesignInXAML/MaterialDesignInXamlToolkit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.