Validation rule is not fired when control is loaded with binding

オープン
#2,797 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
desktop

調査の方向性

リンクされているデモプロジェクト WpfValidationProblem から始め、ユーザーコントロールを XAML に直接追加する場合と、view-model バインディングを介して読み込む場合の違いを再現してください。2 つの読み込み経路を比較して、バリデーションルールが発火しない理由を特定し、その後、報告されている 4.5.0 の構成でどちらの場合もバリデーションが機能することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug evaluation required
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
image

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

主要言語
C#
スター
16.3k
フォーク
3.5k
平均マージ
4時間 25分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MaterialDesignInXAML/MaterialDesignInXamlToolkit のほかの issue

MaterialDesignInXAML/MaterialDesignInXamlToolkit の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。