CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 12:11:34 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"d8111f0cae760d5b7fa531d6e44c5a0b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=o8D%2B7%2BgZPk0LyRwP9iWvlH283UL9jjvsaNpaBd95vOZNfGgclGxE%2FYBK8yYg3AXvUfs2PJ5EHFFZAVEBWPawed33OeRV%2FXCK%2FM8%2F%2FbYFsz07UAchvGygXnewMb9QR1l549ds18y5sr%2BaYAbCgpPh2WtlO70XWGmqzMbs%2BgdZp60kyuULfxmp5H1W5scA4vuq6ErFeJJD99NIm%2BGtq%2Bw2HQIR3IZpCbmrbIVq3W%2BQX8I4Aq3%2BDJE5tC5TEuV2ClFP2iXp2s3Nl7aL3CvPuGJmZg%3D%3D--AjB6auWaYaysaE0l--BPLgsLy8p97e5ISVFDzaTg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.207253797.1753963894; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:11:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:11:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A6BA:4E82A:9D619A:BB351A:688B5D75
ChildWindow · punker76/MahApps.Metro.SimpleChildWindow Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 54
ChildWindow
Jan Karger edited this page Jul 20, 2017
·
6 revisions
Property | Description |
---|---|
AllowFocusElement (bool ) |
Indicates whether if the child window should focus an element. (property default: true ) |
AllowMove (bool ) |
Indicates whether the child window can be moved with the TitleBar inside the overlay container. (property default: false ) |
AutoCloseInterval (long ) |
Gets or sets the time in milliseconds when the child window should auto close. (property default: 5000L ) |
BorderBrush (Brush ) |
Defines the border brush for the child window. (property default: null ) |
BorderThickness |
Defines the border thickness for the child window. |
ChildWindowHeight (double ) |
Defines the height for the child window. (property default: Double.NaN ) |
ChildWindowResult (object ) |
Gets the child window result when the dialog was closed. |
ChildWindowWidth (double ) |
Defines the width for the child window. (property default: Double.NaN ) |
CloseButtonCommand (ICommand ) |
Defines a command for the close button. This command will only be executed if the Close method was called. (property default: null ) |
CloseButtonCommandParameter (object ) |
Defines a (bindable) parameter for the close button command. (property default: null ) |
CloseButtonStyle (Style ) |
Defines the style for the close button. (property default: null , style default: MetroWindowButtonStyle from MahApps.Metro) |
CloseByEscape (bool ) |
Indicates whether the child window can be closed by the Escape key. (property default: true ) |
CloseOnOverlay (bool ) |
Indicates whether the child window can be closed by clicking on the overlay. (property default: false ) |
EnableDropShadow (bool ) |
Indicates whether a shadow (glow) is shown or not around the child window. (property default: true ) |
FocusedElement (FrameworkElement ) |
Defines which element should be focused after the child window opens (if no element is defined, the first focusable element will be focused). |
GlowBrush (SolidColorBrush ) |
Defines the shadow (glow) for the child window. (property default: Black ) |
HorizontalContentAlignment |
Defines the horizontal position of the child window. (property default: Center ) |
Icon (object ) |
Defines an icon for the title bar. |
IconTemplate (DataTemplate ) |
Defines a template for the Icon . (property default: null ) |
IsAutoCloseEnabled (bool ) |
Indicates whether the child window should auto close after the value of AutoCloseInterval has passed. (property default: false ) |
IsModal (bool ) |
Indicates wheter the child window is modal or not. If a OverlayBrush is set then it handles the mouse click event (property default: true )) |
IsOpen (bool ) |
Bindable property to show or close the child window. |
IsWindowHostActive (bool ) |
Indicates whether the host Window is active or not. (property default: true ) |
NonActiveBorderBrush (Brush ) |
Defines the border brush for non-active status. (property default: Gray , style default: NonActiveBorderColorBrush from MahApps.Metro) |
NonActiveGlowBrush (SolidColorBrush ) |
Defines the shadow (glow) for non-active status. (property default: Gray , style default: NonActiveBorderColorBrush from MahApps.Metro) |
OverlayBrush (Brush ) |
The brush for the overlay. (property default: Transparent , style default: GrayBrush3 from MahApps.Metro) |
ShowCloseButton (bool ) |
Show or hide a close button on the title bar. (property default: false ) |
ShowTitleBar (bool ) |
Show or hides the title bar. (property default: true ) |
Title (string ) |
The title for the child window. |
TitleBarBackground (Brush ) |
The title bar background. (property default: Transparent , style default: WindowTitleColorBrush from MahApps.Metro) |
TitleBarHeight (int ) |
Sets the title bar height. (property default: 30 ) |
TitleBarNonActiveBackground (Brush ) |
Defines the title bar background for non-active status. (property default: Gray , style default: NonActiveWindowTitleColorBrush from MahApps.Metro) |
TitleCharacterCasing (CharacterCasing ) |
Gets or sets the character casing of the title. (property default: Normal ) |
TitleFontFamily (FontFamily ) |
The font family for the title. (property default: SystemFonts.CaptionFontFamily , style default: HeaderFontFamily from MahApps.Metro) |
TitleFontSize (double ) |
The font size for the title. (property default: SystemFonts.CaptionFontSize , style default: WindowTitleFontSize from MahApps.Metro) |
TitleForeground (Brush ) |
The title foreground. (property default: Black , style default: IdealForegroundColorBrush from MahApps.Metro) |
TitleHorizontalAlignment (HorizontalAlignment ) |
Gets or sets the title horizontal alignment. (property default: Stretch ) |
TitleTemplate (DataTemplate ) |
Gets or sets the title content template to show a custom title. (property default: null , style default: template with TextBlock and Margin="4" and TextTrimming="CharacterEllipsis" ) |
TitleVerticalAlignment (VerticalAlignment ) |
Gets or sets the title vertical alignment. (property default: Center ) |
VerticalContentAlignment |
Defines the vertical position of the child window. (property default: Center ) |
The ChildWindow
has this method to close it explicit.
public bool Close(object childWindowResult = null)
It will raise the Closing
event and execute the CloseButtonCommand
. After successfully closing the ClosingFinished
event will be raised.
You can pass a child window result if you use the ShowChildWindowAsync
method from the ChildWindowManager.
Event | Description |
---|---|
IsOpenChanged (RoutedEventHandler) |
An event that is raised when IsOpen property changes. |
Closing (EventHandler)
|
An event that is raised when the ChildWindow is closing. |
ClosingFinished (RoutedEventHandler) |
An event that is raised when the closing animation has finished. |
You can’t perform that action at this time.