Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckComboBox and IDataErrorInfo and INotifyPropertyChanged

$
0
0
I'm having trouble understanding or figuring out how to wire up property change notifcation and validation with the CheckComboBox control.

With a regular ComboBox, a definition like this produces proper validation events:
ComboBox x:Name="cboResults" 
                      ItemsSource="{Binding Path=AllowedValues}" 
                      SelectedValue="{Binding Path=AOEResultValue, Mode=TwoWay, UpdateSourceTrigger=LostFocus, ValidatesOnDataErrors=True, NotifyOnValidationError=True}"
                      DisplayMemberPath="ResultText" 
                      SelectedValuePath="ResultValue" />
However, with the CheckComboBox, it's a bit different and I'm not sure where to take it. Below is one of my definitions, but I'm not sure how I would wire it up.

Any assistance would be greatly appreciated.
<xctk:CheckComboBox x:Name="cboResults" 
                                ItemsSource="{Binding Path=AllowedValues}"
                                DisplayMemberPath="ResultText"
                                ValueMemberPath="ResultValue"
                                SelectedMemberPath="IsSelected"/>

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>