[.net] Depth Sorting in WPF with C#

Started by
1 comment, last by Pseudonym 16 years, 10 months ago
Is it possible to sort different layered screens in runtime from the c# element of a WPF application? is there some sort of "SendToFront()" function or command i can call on a WPF screen to make it be presented in front of other screens in the same application? I know you can modify the ZIndex of a screen in the xaml file, but this only changes the order of objects within this file doesn't it?
Advertisement
In terms of a WPF specific way, I don't know of one, but have you tried forcing that window to minimize then restore? may bring it to the foreground.

Another possible way (in theroy) is to set a specific window to top most like this thingy

http://www.galasoft-lb.ch/mydotnet/GalaSoftLb.Wpf.ColorClock/index.html

But to be honest, i dont know is this makes ALL windows of the app topmost in relation to other apps, or if the property can be applied to one of many windows from the same app. If it can be applied to a single window, then set it, and immediately unset it.
Window.Activate()

This topic is closed to new replies.

Advertisement