MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

DialogHost: IME Candidate Window Appears at Top-Left of Screen When Typing Full-Width Characters in TextBox

Open
#3,894 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Bug explanation

When typing full-width characters (e.g., Japanese) into a TextBox displayed within a DialogHost, IME candidate window appears at the top-left corner of the screen instead of near the TextBox.
This significantly degrades the user experience.

Image

Expected Behavior
The IME candidate window should appear properly near the TextBox being used for input.

Reproduction
This issue has been confirmed to be reproducible in the MaterialDesignXaml Demo App.

Potential Cause
This issue might be related to a known WPF problem concerning IME candidate window positioning within Popup controls, as DialogHost internally uses Popup. Popup controls do not have a clear owner window like standard Windows, which could prevent the IME from determining the correct display location.

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 with the MaterialDesignXaml Demo App and reproduce the issue by typing full-width characters into a TextBox within a DialogHost. Investigate the IME candidate-window positioning behavior associated with the DialogHost Popup. Done means the candidate window appears near the active TextBox instead of at the screen's top-left corner.

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.