Using xaml (note the binding to the Attributes [Welcome] dictionary entry):
<Grid x: Name = "LayoutRoot"> <StackPanel> <TextBlock FontSize = "36" FontWeight = "Bold" Foreground = "Purple" Text = "{Binding Attributes [Welcome]}" VerticalAlignment = "Center" HorizontalAlignment = "Center "TextWrapping =" Wrap "/> <TextBox Text =" {Binding Attributes [Welcome], Mode = TwoWay, ValidatesOnDataErrors = True} "> </TextBox> <TextBox Text =" {Binding Attributes [Welcome], Mode = TwoWay, ValidatesOnDataErrors = True} "> </TextBox> <TextBox Text =" {binding test, Mode = TwoWay, ValidatesOnDataErrors = True} "> </TextBox> <TextBox Text =" {binding test, Mode = TwoWay, ValidatesOnDataErrors = True} "> </TextBox> </StackPanel> </ Grid> When the view model implements IDataErrorInfo as:
public string Error { get { return ""; } } public string this[string columnName] { get { return "Compulsory Error"; } }
Only columnName == "Test" is always passed. And so I get the following application: 
How can I check the values ββgiven for an attribute dictionary?
source share