How to set the ZIndex of a particular control to the topmost

前端 未结 1 1101
傲寒
傲寒 2021-01-13 08:03

how do i set any control to the topmost of the screen. For e.g. i have a textblock in a datatemplate or a hierarchichal data template..etc... now i would like to set this te

相关标签:
1条回答
  • 2021-01-13 08:30

    ZIndex is relative to other controls in the same Panel. A number higher than another control will ensure it appears "above" that control.

    If your controls aren't all in the same Panel, ZIndex won't help you. You may need to give more information on exactly what you're doing, but it sounds like an Adorner will be of more use to you.

    0 讨论(0)
提交回复
热议问题