1,862
社区成员




<ComboBox Name="combo1">
<ComboBox.Items>
<ComboBoxItem Content="0" Selected="ComboBoxItem_Selected_1"/>
<ComboBoxItem Content="1" Selected="ComboBoxItem_Selected_2"/>
<ComboBoxItem Content="2" Selected="ComboBoxItem_Selected_3"/>
<ComboBoxItem Content="3" Selected="ComboBoxItem_Selected_4"/>
<ComboBoxItem Content="4" Selected="ComboBoxItem_Selected_5"/>
<ComboBoxItem Content="5" Selected="ComboBoxItem_Selected_6"/>
<ComboBoxItem Content="6" Selected="ComboBoxItem_Selected_7"/>
<ComboBoxItem Content="7" Selected="ComboBoxItem_Selected_8"/>
<ComboBoxItem Content="8" Selected="ComboBoxItem_Selected_9"/>
<ComboBoxItem Content="9" Selected="ComboBoxItem_Selected_10"/>
</ComboBox.Items>
</ComboBox>
<Button Content="Click Me" Click="Button_Click_1" />
<x:Code>
<![CDATA[
void Button_Click_1(object sender, EventArgs e)
{
combo1.SelectedIndex = 0;
}
]]>
</x:Code>