MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
MaterialDesignEmbeddedDialogHost and focus on open
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 16.3k
- フォーク
- 3.5k
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 8
説明
When using DialogHost in a Style="{StaticResource MaterialDesignEmbeddedDialogHost}" configuration, then when opening, the focus for the first focusable control doesn't seem quite right.
It can be replicated using dialoghost Sample 2 "pass view".
If I use the embedded version, then nothing seems to have focus.
If I add FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}" to the first button in embedded a dialoghost:

However I can't just hit enter on that button and there's no dashed lines in the button like this either:

Which seems related to it setting logical focus, but not physical focus: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/focus-overview#logical-focus
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
MaterialDesignEmbeddedDialogHost スタイルを使用して、DialogHost Sample 2 の「pass view」で問題を再現します。埋め込みダイアログを開くときのフォーカス動作を、キーボードによるアクティベーションと表示されるフォーカスインジケーターを含めて比較します。最初のフォーカス可能なコントロールが物理フォーカスを受け取り、Enter でアクティブ化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- desktop
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100