desktop-shell-maximized-content-inset

Community

Prevent maximize clipping with hosted insets.

AuthorBSchafer01
Version1.0.0
Installs0

System Documentation

What problem does it solve?

In custom WPF shells that use WindowStyle=None and WindowChrome, hosted content (such as a WebView2 UI) can visually clip at the native boundary when the window is maximized. This approach provides a proven method to inset the hosted content so visuals stay intact across maximize/restore transitions.

Core Features & Use Cases

  • Inset the hosted content container on maximize to prevent clipping at the native boundary.
  • Keep the host chrome and the hosted content visually separated to avoid layout collisions and ensure consistent padding.
  • Compatible with common hosting scenarios (WebView2, hosted UIs) and restoration behavior after unmaximize.

Quick Start

Add an inset to the hosted content container when the window is maximized, using SystemParameters.WindowResizeBorderThickness for the margins, and reset on restore.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: desktop-shell-maximized-content-inset
Download link: https://github.com/BSchafer01/PanelNester/archive/main.zip#desktop-shell-maximized-content-inset

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.