我如何在WPF中制作这样的东西?

Mr.*_*. X -4 c# wpf

我用滑块获得了这个功能,但是我想像Microsoft办公室一样制作一个可扩展的列表.但我不知道如何在xaml中制作它.我唯一能想到的是Expander>但它看起来不同.

Lie*_*ero 5

你的意思是

<ComboBox>
   <ComboBoxItem>1</ComboBoxItem>
   <ComboBoxItem>2</ComboBoxItem>
   <ComboBoxItem>3</ComboBoxItem>
</ComboBox>
Run Code Online (Sandbox Code Playgroud)

RESP:

<ComboBox ItemsSource="{Binding Numbers}" />
Run Code Online (Sandbox Code Playgroud)