I need to bring to front a custom control in WPF.
pseudoCode
OnMouseDown() { if (this.parent != null) this.parent.BringToFront(this); } <
I've only tested for a Window control but...
this.Topmost = true; this.Topmost = false;
The first line brings it to the front, the second line stops it from being permanently on front.