CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 03:45:25 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/"cf02509ae0741303ed15f3b8c273f552"
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 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=xnaUcNZwVd3zoPDwKI2HYe%2Br%2BrW1rgK%2Bfoslv9G2f9V9Vos2tw0TCCVf3TS2whSzwPOw%2F4hLjuAMaKgkCoLg1RdaMrhEhhUpqhdHDxiJIti1uY89QSIvqeHhb6fFxjV6rCIDPuMbKs7Xuid9sOfCO9Ekh5z%2BfoGTtt5wOkjmSQJA9smfNPR7O6o4JpmTz5w0lhaQeVeWJVpHwSb7ckGU40j08sR0g2DHawSyaTO%2BniNcLAR1WEWRxbCgWNGU%2BaF2GBWvtD2Ji5uZjgkEaKlSdA%3D%3D--BderqLEDEWU7Y94M--O0m%2FUXbgIG%2B84cI%2BJ1PeoA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1228752264.1753847125; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 03:45:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 03:45:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B6A2:136EFA:11B80E4:159593B:68899555
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.