Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > Aulternative of TopMost Property in WPF
 

Aulternative of TopMost Property in WPF

Hi.....
I am working on a project in WPF. In My project there is only one Home Window. And In all other window I use Property ShowInTaskbar as false. To use this property I have to use TopMost Property as true to solve invisibility of my other Windows.
Now the problem is Using TopMost = true, the window appears always on the top of any open window, means It will never go behind of any open other project/Progran. It works just like Window Task Manager, always on top. So I want that My window should be on top But it only on My WPF projects Home Window,If any other Projects /Programs ,I opens den It should on appears top of those window.

Please suggest me the solution.
Thanks in advance...
Hardik Thakker  Wednesday, August 26, 2009 6:10 AM
Hardik,

If you open the second window in code, set the Owner property to the window that is opening the new window you want to float.

Dim obj As New Window1

obj.Owner =

Me

obj.Show()


Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
karl140.6  Wednesday, August 26, 2009 4:01 PM
Hardik,

If you open the second window in code, set the Owner property to the window that is opening the new window you want to float.

Dim obj As New Window1

obj.Owner =

Me

obj.Show()


Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
karl140.6  Wednesday, August 26, 2009 4:01 PM
Thank You SO Much Dear........

Now My Problem is Solved....

Thanks......
Hardik Thakker  Thursday, August 27, 2009 6:49 AM

You can use google to search for other answers

Custom Search

More Threads

• RTM Additional features
• Visual Studio 2008 crashes when I create a new VB.NET WPF application
• casting textblock to system.control in wpf applications
• Is there a Blend Webcast dedicated to designers ?
• "Property editing not available"
• Can't design anything in WPF (Cider broken) Loading this assembly would produce a different grant set from other instances
• Compile-time conundrum
• Include (*.SWF) in C# Project
• Preview Problem of Visual Studio Designer
• custom control from treeviewitem childs propblem during design time