0
RowValidationRulesクラスをリソースとして配置し、DataGridでKeyを参照したいが、そこに到達する方法について100%確実ではない。RowValidationRulesクラスをリソースとコードからの参照として設定する
<Window.Resources><helper:AccountRoleValidationRule x:Key="MyAccountRoleValidator" /></Window.Resources>
<DataGrid.RowValidationRules><helper:AccountRoleValidationRule ValidationStep="UpdatedValue" /></DataGrid.RowValidationRules>
私は<DataGrid RowValidationRules="{StaticResource MyAccountRoleValidator}" />
ような何かをしたいと思いますが、私は「RowValidationRules」プロパティは読み取り専用とマークアップから設定することはできません取得します。私は私のCANSAVE()のICommandの検証結果を確認するために私の.xaml.vbファイルからにfindResource(「MyAccountRoleValidator」)を使用するつもりだ末に
。