我有两个组合框,第一个组合框称为CboCountry,第二个组合框称为CboCity。当我在cboCountry中选择一个国家(例如德国)时,第二个组合框应该仅显示德国的城市。 这是我的Xaml:
<NewUserDesgin:SplitButton
x:Name="CboCountry"
Icon="{DynamicResource appbar_globe}"
HorizontalAlignment="Left"
ItemsSource="{Binding ListCountry, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
DisplayMemberPath="countryname"
VerticalAlignment="Center" Margin="32,131,0,269" Width="225" Height="69"/>
<NewUserDesgin:SplitButton
x:Name="CboCities"
Icon="{DynamicResource appbar_city}"
HorizontalAlignment="Left"
ItemsSource="{Binding ListCities, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
DisplayMemberPath="cityName"
VerticalAlignment="Center" Margin="32,218,0,182" Width="225" Height="69"/>
我该怎么做?
非常感谢