Questions tagged [childwindow]

235 questions
1
vote
1 answer

Styling the title of a ChildWindow

I'm new-ish to C# and wpf. I have a ChildWindow whose title gets set from outside the class. I need the title to be shortened with ellipsis on the end if it is too long. I accomplished by doing this (the code is shortened):
minus
  • 320
  • 1
  • 5
  • 14
1
vote
2 answers

How to Get the Active ChildWindow of an application?

I have this problem. I have an handler to the mainWindow of a certain application, and I want to simulate a keypress on that application... I'm using sendMessage/postMessage api calls to do this. The reason why I don't use the .Net SendKeys function…
Noyoudont
  • 155
  • 3
  • 7
1
vote
1 answer

Get sender (button) from child window

I was generate the button through code. and with the button i got one method to call up the child window in silverlight. private void btnXX_Click(object sender, RoutedEventArgs e) { Button btn = (Button)sender; SlotMaker…
1myb
  • 3,536
  • 12
  • 53
  • 73
1
vote
1 answer

PyQt5 Parent Window closes when Child widget is closed

currently I am working on a python application which uses a PyQt5 GUI and ran into some trouble with the GUI. I have created a main window, which contains a button. When I click this button a second window opens in which the user inputs login data.…
Yanke97
  • 13
  • 2
1
vote
1 answer

window.closed not working for IE

I try to close child popup from a button on parent window. Below is the function used for it.But it doesn't work fine with IE, it works fine with firefox. Sometimes child popup gets closed on first time but when you reopen the popup and try to close…
Rohit
  • 11
  • 2
1
vote
1 answer

How to set focus on child window with the same name

OS : windows 11, pywinauto v 0.68 I need to automate a program with these procedures: Open app click "particular adjustment mode" button click "model name" dropdown menu and press L350 Select "printer information check" on listbox press "check…
1
vote
2 answers

WPF equivalent of Form.ShowDialog(IWin32Window)

In WPF we have Window.ShowDialog() which allows showing a modal dialog box. In WinForms there is similar functionality but it also has an overload Form.ShowDialog(IWin32Window) which allows an IWin32Window owner to be passed in. That way the new…
tbridge
  • 1,754
  • 1
  • 18
  • 35
1
vote
1 answer

Can I remove a ChildWindow from the VisualTree and put it back in to achieve FullScreen?

I have a popup that is a ChildWindow. Inside that popup I have a UserControl (MediaPreviewView) that has a MediaElement and some buttons to control the video. My requirements state that I need a fullscreen button and show the video fullscreen when…
AlignedDev
  • 8,102
  • 9
  • 56
  • 91
1
vote
0 answers

how to create window child window outside primary window

I've learned how to create a child window within the parent window, but I want to create a window outside the program's primary window. If I'm not mistaken, a window outside the primary one is still a child window, right? Does it have its own class…
1
vote
1 answer

ShowDialog a RadWindow with MVVMLight

I have a functional MVVM patterned SL app with a RadWindow (essentially a ChildWindow), that I would like to remove the code-behind in my view that shows the window using its ShowDialog. Both the main view and the window is bound to the same…
rusty
  • 87
  • 7
1
vote
2 answers

Get handle of child window to postmessage in C#

im looking how to get handle of child window and postmessage there. My code: [DllImport("user32.dll", SetLastError = true)] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); //This send postmessage to window…
Adam Zbudniewek
  • 107
  • 2
  • 12
1
vote
1 answer

Silverlight MVVM pattern with Child Window and Shared Data

I have a ViewModel for a "parent" control which displays two grids. The first grid has parent information and the second grid displays the related children for the selected parent. This works fine without a hitch. However the issue is that I have to…
bleepzter
  • 9,607
  • 11
  • 41
  • 64
1
vote
0 answers

Main Window is not resizable when Child Windows is opened in Silverlight?

I am wondering is someone has a solution for it. Main Window is resizable. It is getting scrollbars when is resized to be too small. The problem is that when I open Child Window and resize the Main Window, then Main Window is never getting…
vladc77
  • 1,064
  • 3
  • 22
  • 47
1
vote
1 answer

How can i open child window from angular?

I am creating an angular application. In that, I want to open the child window. and also want to do communication between parent and child browser.
1
vote
1 answer

How to pass the value of datagrid’s cell of the selected row to a texblock in ChildWindow in Silverlight?

I generate datagrid content from the list. I need to be able to pass the value of the ‘Name’ cell of the selected row in the datagrid to a texblock of the child window. The child windows is launched by clicking the context menu item. The scenario is…
vladc77
  • 1,064
  • 3
  • 22
  • 47