Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请谁能告诉我如何制作一个combobox包含项目的标签控件,并且每个标签控件的左侧都有删除按钮。如果单击删除按钮,该项目将被删除并添加到列表框中。
combobox
我已经尝试过了,但我无法做到这一点。
*下面的代码是完全相同的。*
<ComboBox Width="100" Height="23"> <ComboBoxItem> <StackPanel Orientation="Horizontal"> <Button Content="Delete" Click="Button_Click" Name="btn"/> <Label Foreground="Red">Red</Label> </StackPanel> </ComboBoxItem> </ComboBox>