Click here to Skip to main content
15,913,610 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Resource Dictionaries. Pin
Jammer27-May-08 6:38
Jammer27-May-08 6:38 
GeneralRe: Resource Dictionaries. Pin
User 27100927-May-08 8:47
User 27100927-May-08 8:47 
GeneralRe: Resource Dictionaries. Pin
Jammer27-May-08 8:58
Jammer27-May-08 8:58 
QuestionGet the top most child windows Pin
Rohde21-May-08 5:34
Rohde21-May-08 5:34 
AnswerRe: Get the top most child windows Pin
Jammer21-May-08 5:59
Jammer21-May-08 5:59 
GeneralRe: Get the top most child windows Pin
Rohde21-May-08 20:20
Rohde21-May-08 20:20 
GeneralRe: Get the top most child windows Pin
Jammer21-May-08 23:30
Jammer21-May-08 23:30 
GeneralRe: Get the top most child windows Pin
Rohde21-May-08 23:35
Rohde21-May-08 23:35 
Well I did something entirely different.

The problem was that my program (an image processing application) may open a lot of windows in the course of a run, and when the user chooses some action from the menu/tool bar it should only affect the top most window owned by the main window.

So what I did instead was to handle the child window's Activated event. In the event handler I then simply saved a reference to the window in the main window. That way I could simply call mainWindow.ActiveWindow to get the top most child window.

Basically my problem is that I need some kind of pseudo MDI which WPF does not support - but this works quite nicely.



"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."

-Atlas Shrugged, Ayn Rand

GeneralRe: Get the top most child windows Pin
Jammer22-May-08 1:08
Jammer22-May-08 1:08 
AnswerRe: Get the top most child windows Pin
James Lonero5-Jun-08 8:04
James Lonero5-Jun-08 8:04 
GeneralRe: Get the top most child windows Pin
Rohde5-Jun-08 11:08
Rohde5-Jun-08 11:08 
QuestionExpression Blend September Preview Issue Pin
katelva21-May-08 3:29
katelva21-May-08 3:29 
AnswerRe: Expression Blend September Preview Issue Pin
Michael Sync24-May-08 21:31
Michael Sync24-May-08 21:31 
QuestionSkinning & Themes Pin
Jammer20-May-08 23:17
Jammer20-May-08 23:17 
AnswerRe: Skinning & Themes Pin
Jammer21-May-08 1:04
Jammer21-May-08 1:04 
GeneralRe: Skinning & Themes Pin
Pete O'Hanlon21-May-08 1:33
mvePete O'Hanlon21-May-08 1:33 
GeneralRe: Skinning & Themes Pin
Jammer21-May-08 1:49
Jammer21-May-08 1:49 
AnswerRe: Skinning & Themes Pin
Pete O'Hanlon21-May-08 1:32
mvePete O'Hanlon21-May-08 1:32 
GeneralRe: Skinning & Themes Pin
Jammer21-May-08 23:31
Jammer21-May-08 23:31 
GeneralRe: Skinning & Themes Pin
Pete O'Hanlon22-May-08 1:07
mvePete O'Hanlon22-May-08 1:07 
NewsWPF XHTML Validation Tool Pin
User 171649220-May-08 4:09
professionalUser 171649220-May-08 4:09 
GeneralRe: WPF XHTML Validation Tool Pin
User 27100920-May-08 4:44
User 27100920-May-08 4:44 
GeneralRe: WPF XHTML Validation Tool Pin
User 171649220-May-08 7:00
professionalUser 171649220-May-08 7:00 
QuestionCard View For the Data Grid Pin
suchi-gupta20-May-08 2:31
suchi-gupta20-May-08 2:31 
AnswerRe: Card View For the Data Grid Pin
User 27100920-May-08 4:45
User 27100920-May-08 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.