Skip to content

Commit d6e362c

Browse files
author
MutatedGamer
committed
Add Parent property to BrowserWindowOptions
1 parent 79a6ef3 commit d6e362c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ElectronNET.API/Entities/BrowserWindowOptions.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ public class BrowserWindowOptions
154154
public bool Frame { get; set; } = true;
155155

156156
/// <summary>
157-
/// Whether this is a modal window. This only works when the window is a child
158-
/// window.Default is false.
157+
/// Whether this is a modal window. This only works when <see cref="Parent"/> is
158+
/// also specified. Default is false.
159159
/// </summary>
160160
public bool Modal { get; set; }
161161

162162
/// <summary>
163163
/// Whether the web view accepts a single mouse-down event that simultaneously
164-
/// activates the window.Default is false.
164+
/// activates the window. Default is false.
165165
/// </summary>
166166
public bool AcceptFirstMouse { get; set; }
167167

@@ -270,5 +270,11 @@ public class BrowserWindowOptions
270270
/// These will only be used if the Proxy field is also set.
271271
/// </summary>
272272
public string ProxyCredentials { get; set; }
273+
274+
/// <summary>
275+
/// The window to use as the created window's parent.
276+
/// </summary>
277+
[DefaultValue(null)]
278+
public BrowserWindow Parent { get; set; }
273279
}
274280
}

0 commit comments

Comments
 (0)