MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Validation rule is not fired when control is loaded with binding
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 16.3k
- フォーク
- 3.5k
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 8
説明
Bug explanation
when a userControl is added with xaml directly, the validation rules used inside the UC works just fine, but when the same UC is loaded via binding of view model, the validation does not work. Here is an screenshot

and here is a demo project reproducing the problem: repo
I struggled a lot with this but just couldn't find a way to fix this. Also I don't know if this is something wrong with my code, or it is really a bug.
Version
4.5.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされているデモプロジェクト WpfValidationProblem から始め、ユーザーコントロールを XAML に直接追加する場合と、view-model バインディングを介して読み込む場合の違いを再現してください。2 つの読み込み経路を比較して、バリデーションルールが発火しない理由を特定し、その後、報告されている 4.5.0 の構成でどちらの場合もバリデーションが機能することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100