Whing Dela Cruz
asked on
Get the value of comboBox
How to get the value of comboBox? My code are as follows; In XAML I have this
<ComboBox Height="23" Name="cmbDescription" Width="155" HorizontalAlignment="Left"
Margin="5,0,0,0" Grid.Row="0" Grid.Column="3"
Foreground="Red" FontWeight="Bold">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Description}" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
I want to read it to MessageBox Command as follows
MessageBox.Show(cmbDescrip tion???); How?
<ComboBox Height="23" Name="cmbDescription" Width="155" HorizontalAlignment="Left"
Margin="5,0,0,0" Grid.Row="0" Grid.Column="3"
Foreground="Red" FontWeight="Bold">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Description}" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
I want to read it to MessageBox Command as follows
MessageBox.Show(cmbDescrip
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER