childwindow

Silverlight BusyIndicator : Higher Z-Index than all ChildWindows

百般思念 提交于 2019-12-09 02:18:29
Perhaps the title is worded incorrectly. I have a "global" Busy Indicator that works great, as long as I don't try to use it when a ChildWindow is open. I access the "global" Busy Indicator by using a static method in my App.xaml.cs: BusyIndicator b = (BusyIndicator)App.Current.RootVisual; if (b != null) { b.BusyContent = busyText; b.IsBusy = true; } However, if a ChildWindow is open, the BusyIndicator is always behind it. I thought that I could set b.Content = VisualTreeHelper.GetOpenPopups().First() , but that didn't work either. Does anyone have any tips on having a BusyIndicator on top of

minimize vb.net forms to mdiparent bottom eg. adobe photoshop

笑着哭i 提交于 2019-12-08 12:53:03
问题 vb.net 2008 I have 1 mdiparent and many child forms. on clicking minimize button of child form it should minimize and display at the botton of mdiparent and not in taskbar. like in adobe photoshop. Is it possible to do? if yes how? 回答1: You need to set the child Form's MdiParent Property to your MdiContainer. This example assumes two Forms one named Form1 and the other named Form2. All properties are being set programmatically. Public Class Form1 Public Sub New() InitializeComponent() Me

Silverlight BusyIndicator : Higher Z-Index than all ChildWindows

馋奶兔 提交于 2019-12-08 05:19:10
问题 Perhaps the title is worded incorrectly. I have a "global" Busy Indicator that works great, as long as I don't try to use it when a ChildWindow is open. I access the "global" Busy Indicator by using a static method in my App.xaml.cs: BusyIndicator b = (BusyIndicator)App.Current.RootVisual; if (b != null) { b.BusyContent = busyText; b.IsBusy = true; } However, if a ChildWindow is open, the BusyIndicator is always behind it. I thought that I could set b.Content = VisualTreeHelper.GetOpenPopups(

Child window full-size in Chrome

Deadly 提交于 2019-12-07 09:23:05
问题 I need to open a child window full-size in Chrome browser, the following code works fine in Firefox 16.0.2 and IE 9, but not in Google Chrome 22 . What am I missing? window.open(href,"_blank","scrollbars=1,fullscreen=yes,status=no,toolbar=no,menubar=no,location=no"); 回答1: The fullscreen option is supported by IE only ; you are "lucky", FF seems to accept it now, but Google Chrome doesn't support this feature... You only can force width and height on your popup http://www.w3schools.com/jsref

WPF window position

余生颓废 提交于 2019-12-07 04:58:52
问题 I have asked a question before about creating a child window here ... Now when I open child window, it doesn`t open centered to the parent window. How can I set it to open centered to the parent window? 回答1: This solution worked fine for me. Here’s a method I’ve found for centering a window to either its parent or the main window for the application, in WPF. It’s not too different from how you do it in WinForms. For the child window, set its WindowStartupLocation to “CenterOwner”. This will

How to get child window url from parent window using javascript

試著忘記壹切 提交于 2019-12-06 03:04:59
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) { winRef = window.open(url, "mywindow"); winRef.focus(); alert(winRef.location.href); } winRef.captureEvents(Event.CHANGE); winRef.onchange=function(){ alert('change event triggered'); console.log(winRef.location.href); } I have tried with events LOAD, CHANGE to capture the location change of the window. But the LOAD and CHANGE events gets triggered only once. I dont want to use

Pass data to Child Window in Silverlight 4 using MVVM

心已入冬 提交于 2019-12-05 23:17:40
I have a datagrid with master detail implementation as follows: <data:DataGrid x:Name="dgData" Width="600" ItemsSource="{Binding Path=ItemCollection}" HorizontalScrollBarVisibility="Hidden" CanUserSortColumns="False" RowDetailsVisibilityChanged="dgData_RowDetailsVisibilityChanged"> <data:DataGrid.Columns> <data:DataGridTextColumn Header="Item" Width="*" Binding="{Binding Item,Mode=TwoWay}"/> <data:DataGridTextColumn Header="Company" Width="*" Binding="{Binding Company,Mode=TwoWay}"/> </data:DataGrid.Columns> <data:DataGrid.RowDetailsTemplate> <DataTemplate> <data:DataGrid x:Name="dgrdRowDetail

How to create child layered alpha-transparent window?

末鹿安然 提交于 2019-12-05 22:41:59
I am trying to create transparent child window. procedure TForm1.BtnGoClick(Sender: TObject); var bmp:TBitmap; BitmapPos: TPoint; BitmapSize: TSIZE; BlendFunction: _BLENDFUNCTION; exStyle: Cardinal; begin bmp := TBitmap.Create; bmp.LoadFromFile('my32bitbitmap.bmp'); exStyle := GetWindowLongA(Form2.Handle, GWL_EXSTYLE); if (exStyle and WS_EX_LAYERED = 0) then SetWindowLong(Form2.Handle, GWL_EXSTYLE, exStyle or WS_EX_LAYERED); BitmapPos := Point(0, 0); BitmapSize.cx := bmp.Width; BitmapSize.cy := bmp.Height; BlendFunction.BlendOp := AC_SRC_OVER; BlendFunction.BlendFlags := 0; BlendFunction

Child window full-size in Chrome

北慕城南 提交于 2019-12-05 14:33:27
I need to open a child window full-size in Chrome browser, the following code works fine in Firefox 16.0.2 and IE 9, but not in Google Chrome 22 . What am I missing? window.open(href,"_blank","scrollbars=1,fullscreen=yes,status=no,toolbar=no,menubar=no,location=no"); The fullscreen option is supported by IE only ; you are "lucky", FF seems to accept it now, but Google Chrome doesn't support this feature... You only can force width and height on your popup http://www.w3schools.com/jsref/met_win_open.asp 来源: https://stackoverflow.com/questions/13192313/child-window-full-size-in-chrome

WPF window position

走远了吗. 提交于 2019-12-05 06:09:21
I have asked a question before about creating a child window here ... Now when I open child window, it doesn`t open centered to the parent window. How can I set it to open centered to the parent window? This solution worked fine for me. Here’s a method I’ve found for centering a window to either its parent or the main window for the application, in WPF. It’s not too different from how you do it in WinForms. For the child window, set its WindowStartupLocation to “CenterOwner”. This will cause it to show in the center of the owning Window. Collapse <Window x:Class="WpfApplication1.TestChild"