-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathChangeParentWindow.xaml
More file actions
24 lines (24 loc) · 1.17 KB
/
ChangeParentWindow.xaml
File metadata and controls
24 lines (24 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window x:Class="CefSharp.Wpf.Example.ChangeParentWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="ChangeParentWindow" Height="600" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
<Button Content="Open browser in new Window" Click="OnAddBrowser" />
<Button Content="Re-Parent Browser and Close Window" Click="OnRemoveBrowser" />
</StackPanel>
<Border Grid.Row="1" Grid.Column="0" x:Name="StaticBrowser" />
<Border Grid.Row="1" x:Name="BrowserSite" Grid.Column="1" />
</Grid>
</Window>