When I create a combobox in WPF I want it to have a name on it like "Your choice", just like if it was a common button and when I click on it I want only the items to dropdown, not the name on the combobox again. I hope you understand my question? Is there a way to solve this?
In the XAML I use this for the combobox:
<ComboBox Height="23" HorizontalAlignment="Left" Margin="110,226,0,0" Name="cmbChangeRoute" VerticalAlignment="Top" Width="156" SelectionChanged="cmbChangeRoute_SelectionChanged" />
And I add items in the C# code like this:
string[] strChangeRoute = new string[] { "Your choice", "10 deg", "20 deg", "30 deg" };
foreach (string s in strChangeRoute)
cmbChangeRoute.Items.Add(s);
cmbChangeRoute.SelectedIndex = 0;