<ComboBox Name="ASelect" Width="180" Height="27" SelectedIndex="0" HorizontalContentAlignment="Center" VerticalAlignment="Center" SelectionChanged="ASelect_SelectionChanged">
<ComboBoxItem HorizontalContentAlignment="Right" VerticalContentAlignment="Center">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Image Source="a.png" Height="18" Width="22" />
<Label Content=" "/>
<TextBlock Width="150" Name="All"> All Values</TextBlock>
</StackPanel>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<StackPanel Orientation="Horizontal">
<Image Source="tick.png" Height="24" Width="24" />
<TextBlock Width="150"> New Values</TextBlock>
</StackPanel>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<StackPanel Orientation="Horizontal">
<Image Source="question.png" Height="24" Width="24" />
<TextBlock Width="150"> Old Values</TextBlock>
</StackPanel>
</ComboBoxItem>
</ComboBox>
How to get the value of selected item from a multicolumn combobox. I want to get the value in the textblock that says, "All values". I tried using the below the code, but it gives stackpanel as the string,
string selectionString = ((ComboBoxItem)ASelect.SelectedItem).Content.ToString();