I have Customer object and it's got TimeZoneKey property which is FK
When I bind TimeZone on customer screen - it looks like this:
<
ComboBox ItemsSource="{Binding TimeZones}" SelectedValue="{Binding CurrentItem.TimeZoneKey, Mode=TwoWay}" Grid.Column="1" Grid.Row="5" Margin="1" SelectedValuePath="TimeZoneKey" DisplayMemberPath="DisplayName" TabIndex="5">
</ComboBox>
Where I have issue is that verifier doesn't work. RequiredValueValidator is there, but problem is that if TimeZone not selected from dropdown - Key stays "0", not null and it's fine by verifier.
Just looking for best way to handle such scenario.
1. Default time zone to something?
2. Add another verifier and check to make sure Key>0 ?
3. Somehow stop Key default to 0?