Mr. X Mr. X - 1 month ago 15
C# Question

How can i make something like this in WPF?



I got this functionality with a slider, but I would like to make an extensible list just like in Microsoft office. But im not sure how to make it in xaml.
The only thing I can think of is Expander> but it looks different.

Answer

You mean

<ComboBox>
   <ComboBoxItem>1</ComboBoxItem>
   <ComboBoxItem>2</ComboBoxItem>
   <ComboBoxItem>3</ComboBoxItem>
</ComboBox>

resp:

<ComboBox ItemsSource="{Binding Numbers}" />