如何隐藏wpf

问题描述 投票:0回答:2

可以在不更改视图模型和物品中的集合的情况下完成吗?I always want to show this:

您可以减少宽度,因此仅适合箭头:

c# wpf xaml combobox .net-4.8
2个回答
3
投票

enter image description here 如果您想要更宽的下拉列表,也可以增加填充物,以便将文字推下下面的文字或框的右侧。

没有填充:

0
投票
<ComboBox Name="BlankBox" Height="21" Margin="3,2" Padding="0"/>

(文本排列的左上角)

有些填充:

<ComboBox Name="BlankBox" Height="21" Margin="3,2" Padding="5"/>

(文本从左上角偏移,并被盒子的底部填充部分遮盖)

填充:

<ComboBox Name="BlankBox" Height="21" Margin="3,2" Padding="20"/>

(文本已经完全看不见)

    

© www.soinside.com 2019 - 2025. All rights reserved.