<CombobBox x:Name="cbo"
Style="{StaticResource ComboStyle1}"
DisplayMemberPath="NAME"
SelectedItem="{Binding Path=NAME}"
SelectedIndex="1">
<ComboBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding Path=NAME}"/>
</Grid>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
In Window OnLoaded event i written the code to set the ItemSource
cbo.ItemsSource = ser.GetCity().DefaultView;
While loading the window i can see that the initially the the first item is loading but on the same time it clear the displayed item. I am stuck up in this scenario and any help is appreciated.
Regards
Kishore