[英]How to set ZIndex on StatusBarItem
I have 'StatusBar' with 'StatusBarItem'`s and one of them is current status label. 我有带有“ StatusBarItem”的“ StatusBar”,其中之一是当前状态标签。 I want it to fill all available space but dont overlap other Items.
我希望它填充所有可用空间,但不要与其他项重叠。 Usually I achieve this using ZIndex=-1 but there is no ZIndex on StatusBarItem.
通常我使用ZIndex = -1实现此功能,但是StatusBarItem上没有ZIndex。 So how to do it?
那怎么办呢?
It appears that StatusBar derives from ItemsControl, which allows you to set the template for ItemsPanel. 似乎StatusBar派生自ItemsControl,它使您可以设置ItemsPanel的模板。 It seems like using a different template for that will give you the flexibility you need for layout.
似乎使用不同的模板将为您提供布局所需的灵活性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.