Jon Koivula
Jon Koivula

Reputation: 947

How I can bring ListView control in top of other controls in WPF

I have a ListView control which is behind other controls. I cant set parent nor use BringInFront function like in winforms to make it front. How I can achieve this in WPF? Bring ListView control in top of other controls.

Upvotes: 0

Views: 569

Answers (2)

Nikhil Agrawal
Nikhil Agrawal

Reputation: 48568

You can set the ZIndex Property to the maximum.

Read this

OR

Alternatively, just move the ListView control to the bottom of the declarations inside the Grid (z-order is bottom (highest) to top (lowest)). Perhaps a bit counterintuitive.

Upvotes: 3

Sajeetharan
Sajeetharan

Reputation: 222582

You can do this,

Goto View->Designer (Shift+f7)

Right Click your ListView ,

Order->Bring To Front

enter image description here

Upvotes: 0

Related Questions