简体   繁体   English

FixedPage 没有 ZIndex

[英]FixedPage doesn't have a ZIndex

Im trying to print Canvas content and have resorted to moving the children to a FixedPage object to aid in positioning, etc. But I just found out it doesn't seem to have a ZIndex property to attach to the children.我试图打印Canvas内容,并已将孩子移动到FixedPage object 以帮助定位等。但我刚刚发现它似乎没有ZIndex属性可以附加到孩子身上。

Is there a way around this?有没有解决的办法?

Use a Canvas in your fixed page something like this:在您的固定页面中使用 Canvas,如下所示:

canvas = new Canvas();
fixedPage.Children.Add(canvas);
foreach(var element in youeElements)
{
    canvas.Children.Add(element);
    Canvas.SetZIndex(element, zindex);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM