CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 23:52:09 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/"60bd9df27c989d97fcf365f8512d7419"
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=6ynk1I2f2fwBpcu76qNMkFYf4%2B115Q0h4xNsvDEaF4WhU1XgTS8wEWIT9RPNYg34wMj8bVXfMvDrJgWbspzn7UtL%2FC1IuLpT%2Fl2WCD8DLh6s3OBc3GI99syumFrp00I47D1ilWQhmnZPHPHKUBslfY%2Bi%2FOMsdI2z00%2F%2BTTMRdmQrsqZH8IgJwMZ%2FCvFtWiEn48c75U%2FhjyqlJhvvYEM7jU%2FPBC50k1hHwR7sih3eYMPIqhobg796mA%2FlKIVfNJ6Q6UZ56IAUYGNqNmFxdKjbPw%3D%3D--9LDKWOEx2eONQ8KJ--AfOqag5KdgUW1Qh4SDDn0Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1600863552.1753919529; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 23:52:09 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 23:52:09 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E988:1CD35:D1871:13BC92:688AB029
Samples · punker76/MahApps.Metro.SimpleChildWindow Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 54
Samples
Jan Karger edited this page Jan 27, 2018
·
9 revisions
Directly in XAML
<simpleChildWindow:ChildWindow
IsOpen="{Binding IsChildWindowOpenOrNotProperty}"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
Padding="15"
ChildWindowImage="Error"
Title="TestChild 1">
<Grid>
</Grid>
</simpleChildWindow:ChildWindow>
Or with the ChildWindowManager
private async void OpenAChildWindow_OnButtonClick(object sender, RoutedEventArgs e)
{
// opens a cool child window
await this.ShowChildWindowAsync(new CoolChildWindow() { IsModal = false });
}
A modal ChildWindow
uses by default the GrayBrush3
from MahApps for the OverlayBrush
. So the overlay hides the complete content. You can use a SolidColorBrush
with an opacity to make the overlay transparent.
<simpleChildWindow:ChildWindow x:Class="MahApps.Metro.SimpleChildWindow.Demo.OpacityTestChildWindow"
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="https://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="https://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow"
Title="Overlay with Opacity"
Padding="15"
d:DesignHeight="300"
d:DesignWidth="300"
AllowMove="True"
ShowCloseButton="True"
mc:Ignorable="d">
<simpleChildWindow:ChildWindow.OverlayBrush>
<SolidColorBrush Opacity="0.8" Color="{StaticResource Gray2}" />
<!-- or like the MahApps overlay
<SolidColorBrush Opacity="0.7" Color="{StaticResource BlackColor}" />
-->
</simpleChildWindow:ChildWindow.OverlayBrush>
<StackPanel Margin="20">
<StackPanel Orientation="Horizontal">
<Button Margin="5" Content="Import" />
<Button Margin="5" Content="Export" />
<Button Margin="5" Content="Reset To Default" />
</StackPanel>
</StackPanel>
</simpleChildWindow:ChildWindow>
<Grid x:Name="LayoutRoot">
<simpleChildWindow:ChildWindow x:Name="child01"
Title="TestChild 1"
Padding="15"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
CloseByEscape="False"
IsAutoCloseEnabled="True">
<!-- Content -->
</simpleChildWindow:ChildWindow>
</Grid>
<Grid x:Name="LayoutRoot">
<simpleChildWindow:ChildWindow x:Name="child02"
Title="Testing..."
ChildWindowHeight="300"
ChildWindowWidth="400"
EnableDropShadow="False">
<!-- Content -->
</simpleChildWindow:ChildWindow>
</Grid>
<Grid x:Name="LayoutRoot">
<simpleChildWindow:ChildWindow x:Name="child03"
Title="Cool..."
BorderBrush="{DynamicResource AccentBaseColorBrush}"
BorderThickness="1"
GlowBrush="{DynamicResource AccentColorBrush}"
IsModal="False"
ShowCloseButton="True">
<!-- Content -->
</simpleChildWindow:ChildWindow>
</Grid>
<Grid x:Name="LayoutRoot">
<simpleChildWindow:ChildWindow x:Name="child04"
Title="Cool..."
BorderBrush="{DynamicResource AccentBaseColorBrush}"
BorderThickness="1"
GlowBrush="{DynamicResource AccentColorBrush}"
ShowCloseButton="True">
<simpleChildWindow:ChildWindow.Icon>
<iconPacks:PackIconModern Width="22"
Height="22"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{DynamicResource IdealForegroundColorBrush}"
Kind="Cog" />
</simpleChildWindow:ChildWindow.Icon>
<!-- Content -->
</simpleChildWindow:ChildWindow>
</Grid>
<Grid x:Name="LayoutRoot">
<simpleChildWindow:ChildWindow x:Name="child05"
Title="Cool..."
BorderBrush="{DynamicResource AccentBaseColorBrush}"
BorderThickness="1"
GlowBrush="{DynamicResource AccentColorBrush}"
AllowMove="True"
ShowCloseButton="True">
<!-- Content -->
</simpleChildWindow:ChildWindow>
</Grid>
You can’t perform that action at this time.