Questions tagged [childwindow]
235 questions
3
votes
1 answer
How To Get Global MouseMove And KeyDown Events In Silverlight
Application.Current.RootVisual.KeyDown += Application_KeyDown
The above does not work if I'm on a ChildWindow - that was instantiated in runtime. My question is, how do I get the mousemove or keydown event in the Parent Window that hosts this…

Shnitzel
- 61
- 3
3
votes
1 answer
How to get child window url from parent window using javascript
I'm launching a child window with a window reference name. I want to capture the URL of the child window when it changes each time.
var winRef;
var url='http://www.google.com';
if(winRef == null || winRef.closed)
{
…

Saranya Sukumar
- 31
- 1
- 3
3
votes
1 answer
wpf binding from child window
I'm learning XAML and I'm having a problem binding content of a control to a settings property from a child window.
Here's a quick example I've made to make it more clear. Calling the child from the main window:
Private Sub Button1_Click(sender As…

Kaidan Alenko
- 97
- 1
- 9
3
votes
3 answers
How to detect parent form cancelling a FormClosing event?
I have a child form opened from my main form as follows:
var cf = new ChildForm { Owner = this };
cf.Show();
The child form then does some drawing on another thread.
When a user tries to close the main form - if the child form is open - then a…

g t
- 7,287
- 7
- 50
- 85
3
votes
1 answer
display rectangle on a win32 child window if cursor is on it and erase if cursor leaves child window
I need to display some shapes (5 rectangles to be precise) on my caption less child window when ever my cursor is on the window, and erase them when cursor leaves the window; i.e enters into the parent window region.
I am tracking the mouse movement…

Sundus Alamovic
- 322
- 2
- 18
3
votes
1 answer
Detect which childwindow of the foreground window has been clicked?
My task was to to find the foreground window (accomplished using GetForegroundWindow API) and then I had to pre-populate a list which contained all the child windows of the foreground window (accomplished using EnumChildWindows API).Now I need to…

Ajit
- 964
- 10
- 17
2
votes
1 answer
Place ChildWindow Control in Center of Screen
I use separated usercontrol to create my application toolbar in WPF.
I want to open WPF extended ChildWindow when user click on one of toolbar buttons.
I should place ChildWindow in center of screen but when I set WindowStartupLocation="Center"…

Shahin
- 12,543
- 39
- 127
- 205
2
votes
2 answers
Use MVVM Light View Model Locator with Child Window in Silverlight 4
I want to use the View Model Locator in a Child Window.
Problem is this don't work:

maxence51
- 994
- 1
- 8
- 20
2
votes
2 answers
Is it possible to get rid of the ChildWindow animation is Silverlight?
In my opinion, the animation is too long and too "jumpy" - I'd like to remove it or make it more subtle. Possible?

Sergey Aldoukhov
- 22,316
- 18
- 72
- 99
2
votes
2 answers
Silverlight ChildWindow do not close properly on callback
I have a simple ChildWindow containing only two elements, textblock and a progress bar to simulate a waiting screen. That ChildWindow is started before calling async WCF method and closed on the callback.
The problem is the second time the…

Dominic St-Pierre
- 2,429
- 3
- 27
- 35
2
votes
2 answers
Silverlight Childwindow + Implicit Style not working
Using Silverlight 4, we can't seem to get Childwindows' to show our implicit styles. Every other control on our app takes the implicit styles but the childwindow (even the controls on the childwindow take their implicit styles)
(we are using the…

CraigF
- 139
- 2
- 10
2
votes
1 answer
How can i show child electron BrowserWindow as separate taskbar icon?
I have test electron project with two windows.
Now windows are grouped in the taskbar (see the ACTUAL part on screenshot).
I want each window to be in a separate icon in the taskbar (see the EXPECTED part on screenshot).
Can I do this…

Ilya Shmin
- 126
- 1
- 9
2
votes
2 answers
Close childwindows in silverlight with a click outside of it
How can I close a childwindow when I click outside of it?

Ivan Crojach Karačić
- 1,911
- 2
- 24
- 44
2
votes
1 answer
Emulate mouse events with PostMessage without gaining focus (WINAPI)
I emulated the mouse events using PostMessage and tested on the notepad application.
I don't want to gain focus of the notepad application by sending mouse events.
The events are received only if I use the ChildWindow of the notepad (ie the white…

Laetitia
- 21
- 1
2
votes
1 answer
How can I tell which Silverlight Popup (or ChildWindow) is topmost?
I am trying to hit test in Silverlight applications to find the elements under the mouse cursor.
Normally VisualTreeHelper.FindElementsInHostCoordinates works for this. If there is a Popup open I need to pass in the popup to the hit testing method.…

Greg
- 10,360
- 6
- 44
- 67