简体   繁体   中英

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.

Is there a way around this?

Use a Canvas in your fixed page something like this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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