childwindow

Allow views in childWindow to become key without losing focus on parentWindow

丶灬走出姿态 提交于 2019-12-05 00:34:48
问题 I added a childWindow of a custom subclass of NSWindow to a parentWindow (also a custom subclass of NSWindow). The childWindow has the NSBorderlessWindowMask and canBecomeKeyWindow: is overridden to return YES and canBecomeMainWindow: to return NO. The childWindow is set to resize with the parentWindow. So I want to create the illusion that the views of the childWindow are part of the parentWindow. The main idea is to arrange the document windows created by the document-based application

Allow views in childWindow to become key without losing focus on parentWindow

牧云@^-^@ 提交于 2019-12-03 15:24:30
I added a childWindow of a custom subclass of NSWindow to a parentWindow (also a custom subclass of NSWindow). The childWindow has the NSBorderlessWindowMask and canBecomeKeyWindow: is overridden to return YES and canBecomeMainWindow: to return NO. The childWindow is set to resize with the parentWindow. So I want to create the illusion that the views of the childWindow are part of the parentWindow. The main idea is to arrange the document windows created by the document-based application within a main window to provide a tabbed interface (just like in a browser) to switch between the documents

Using MVVM in WPF, should I launch child windows from View code behind, or ViewModel?

若如初见. 提交于 2019-12-03 02:48:19
问题 I've been puzzled by this for a while. I am writing quite a large RibbonWindow WPF application using the MVVM pattern. The screen has a RibbonBar menu along the top and the rest of it displays the various Views. Some Views contain other Views and some of these have buttons that launch child Windows. So far, I have been doing this from the View code behind file, but I'm aware that these files are supposed to be empty when using MVVM. I could move the child window launch code to the ViewModel,

silverLight childWindow

此生再无相见时 提交于 2019-12-02 04:38:31
问题 how can i do my childWindow to be always on top? 回答1: If by ChildWindows you mean the ChildWindow object in Silverlight then it should always appear on top, as the documentation says: A ChildWindow always displays in a modal popup that blocks user interaction with the underlying user interface. But if by ChildWindow you mean something else you created in Silverlight then you need to set the ZIndex property of that object to a very big number: The z-order of an object determines whether the

silverLight childWindow

随声附和 提交于 2019-12-02 02:31:59
how can i do my childWindow to be always on top? If by ChildWindows you mean the ChildWindow object in Silverlight then it should always appear on top, as the documentation says: A ChildWindow always displays in a modal popup that blocks user interaction with the underlying user interface. But if by ChildWindow you mean something else you created in Silverlight then you need to set the ZIndex property of that object to a very big number: The z-order of an object determines whether the object is in front of or behind another overlapping object. By default, the z-order of objects within a Panel

Silverlight Confirm Dialog to Pause Thread

爷,独闯天下 提交于 2019-11-30 15:32:14
问题 I'm trying to do a confirmation dialog using Silverlight's ChildWindow object. Ideally, I'd like it to work like MessageBox.Show() , where the entire application halts until an input is received from the user. For example: for (int i = 0; i < 5; i++) { if (i==3 && MessageBox.Show("Exit early?", "Iterator", MessageBoxButton.OKCancel) == MessageBoxResult.OK) { break; } } Would stop the iteration at 3 if the user hits OK... However, if I were to do something along the lines: ChildWindow confirm

Angular component in a Browser's child window

試著忘記壹切 提交于 2019-11-30 14:43:41
问题 From an Angular application is there any way that I can create a Browser's child window and show some predefined angular component in it. Clarification : I am not looking for a Modal dialog solution. 回答1: In case you are using window.open for the child window in order to show an angular component that window should load a website which uses angular this means you eighter create in your own app a child route special for that page and you open your own app to that specific route. If you chose

Silverlight Confirm Dialog to Pause Thread

风流意气都作罢 提交于 2019-11-30 14:11:13
I'm trying to do a confirmation dialog using Silverlight's ChildWindow object. Ideally, I'd like it to work like MessageBox.Show() , where the entire application halts until an input is received from the user. For example: for (int i = 0; i < 5; i++) { if (i==3 && MessageBox.Show("Exit early?", "Iterator", MessageBoxButton.OKCancel) == MessageBoxResult.OK) { break; } } Would stop the iteration at 3 if the user hits OK... However, if I were to do something along the lines: ChildWindow confirm = new ChildWindow(); confirm.Title = "Iterator"; confirm.HasCloseButton = false; Grid container = new