[英]How I can bring ListView control in top of other controls in WPF
I have a ListView control which is behind other controls. 我有一个在其他控件后面的ListView控件。 I cant set parent nor use BringInFront function like in winforms to make it front.
我不能设置父级,也不能像在winforms中那样使用BringInFront函数来使其居于前面。 How I can achieve this in WPF?
我如何在WPF中实现这一目标? Bring ListView control in top of other controls.
将ListView控件置于其他控件的顶部。
You can set the ZIndex
Property to the maximum. 您可以将
ZIndex
属性设置为最大值。
OR 要么
Alternatively, just move the ListView
control to the bottom of the declarations inside the Grid
(z-order is bottom (highest) to top (lowest)). 或者,只需将
ListView
控件移动到Grid
内声明的底部(z顺序是底部(最高)到顶部(最低))。 Perhaps a bit counterintuitive. 也许有点违反直觉。
You can do this, 你可以这样做,
Goto View->Designer (Shift+f7) 转到视图->设计器(Shift + f7)
Right Click your ListView , 右键单击您的ListView,
Order->Bring To Front 订单->带到前面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.