Skip to content

Conversation

Copy link

Copilot AI commented Nov 10, 2025

Adds three new samples demonstrating advanced windowing APIs for custom title bar scenarios.

New Samples

ExtendContentIntoTitleBarWindow

  • Demonstrates Window.ExtendsContentIntoTitleBar to extend UI into title bar while preserving system caption buttons
  • Uses SetTitleBar() to define drag region
ExtendsContentIntoTitleBar = true;
SetTitleBar(CustomTitleBar);

CustomTitleBarWindow

  • Demonstrates SetBorderAndTitleBar(true, false) to hide system caption buttons
  • Custom minimize/maximize/close buttons with full window control
  • Uses InputNonClientPointerSource.SetRegionRects with NonClientRegionKind.Passthrough on maximize button to enable Windows 11 Snap Layouts
_appWindow.SetBorderAndTitleBar(hasBorder: true, hasTitleBar: false);
_nonClientPointerSource.SetRegionRects(NonClientRegionKind.Passthrough, new[] { rect });

DraggableRegionWindow

  • Demonstrates InputNonClientPointerSource.SetRegionRects with NonClientRegionKind.Caption to create custom drag regions anywhere in window content
  • Dynamically updates region on resize/layout changes
_nonClientPointerSource.SetRegionRects(NonClientRegionKind.Caption, new[] { rect });

Changes

  • Added 3 new window samples with XAML and code-behind
  • Updated MainPage with buttons to launch new samples
  • Updated README with sample descriptions

All implementations include platform-specific error handling and follow existing sample patterns.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 0t3vsblobprodcus362.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 11vvsblobprodcus336.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 1javsblobprodcus364.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 1p7vsblobprodcus324.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 2zrvsblobprodcus388.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 37bvsblobprodcus311.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 4zjvsblobprodcus390.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 5dkvsblobprodcus355.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 5rqvsblobprodcus385.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 7k6vsblobprodcus337.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 7tjvsblobprodcus341.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • 96bvsblobprodcus338.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • ajhvsblobprodcus363.blob.core.windows.net
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • bcnvsblobprodcus378.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • c50vsblobprodcus330.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • cflvsblobprodcus383.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • crl.godaddy.com
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • d0svsblobprodcus381.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • e7bvsblobprodcus348.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • frdvsblobprodcus327.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • imzvsblobprodcus368.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • kh4vsblobprodcus325.blob.core.windows.net
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • kijvsblobprodcus387.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • l49vsblobprodcus358.blob.core.windows.net
    • Triggering command: dotnet build (dns block)
    • Triggering command: dotnet restore /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WindowingSamples/src/WindowingSamples/WindowingSamples.csproj (dns block)
  • l7avsblobprodcus319.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • m6xvsblobprodcus342.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • nn8vsblobprodcus340.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • o3svsblobprodcus318.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • ocsp.godaddy.com
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • pdfvsblobprodcus380.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • rcxvsblobprodcus328.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • se1vsblobprodcus349.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • sqdvsblobprodcus333.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • u3hvsblobprodcus371.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoIslandsSampleApp/UnoIslandsSampleApp.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • www.myget.org
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/UnoContoso/UnoContoso.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
  • ytvvsblobprodcus310.blob.core.windows.net
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/WebRTC/WebRTC.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/HtmlControls/HtmlControls.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)
    • Triggering command: dotnet restore --no-dependencies /home/REDACTED/work/Uno.Samples/Uno.Samples/UI/NativeElementHostingDesktop/NativeElementHostingDesktop.sln --packages /home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/Uno.Samples/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:EnableWindowsTargeting=true (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Improve Windowing sample with new features</issue_title>
<issue_description>### What would you like to be added? 💡

Add new sample pages to the Windowing sample:

  • Illustrating Window.ExtendsContentIntoTitleBar API to allow extending XAML UI the titlebar area while preserving the caption buttons
  • Illustrating the SetBorderAndTitleBar API with (true, false) to completely extend the client area and hide the caption buttons (allowing the user to render their own custom buttons - including InputNonClientPointerSource.SetRegionRects for Maximize button to support Snap layouts menu)
  • Illustrating the usage of InputNonClientPointerSource.SetRegionRects for Caption (the sample could display a red rectangle in the middle of the window that would allow dragging the whole window)

Why is this needed? 🤔

No response

Renderer 🎨

  • Skia
  • Native

For which platforms 📱💻🖥️

No response

Anything else we need to know? 💬

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link

CLAassistant commented Nov 10, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MartinZikmund
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Improve Windowing sample with new features Add windowing samples for ExtendsContentIntoTitleBar, SetBorderAndTitleBar, and InputNonClientPointerSource APIs Nov 10, 2025
Copilot AI requested a review from MartinZikmund November 10, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Windowing sample with new features

3 participants