Skip to content

Add optional WPF viewport and shared CharacterLab host - #46

Merged
atcarter714 merged 2 commits into
mainfrom
iteration/wpf-character-host
Nov 22, 2026
Merged

atcarter714 merged 2 commits into
mainfrom
iteration/wpf-character-host

Conversation

@atcarter714

@atcarter714 atcarter714 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Add DXSharp.Framework.Wpf with a dispatcher-owned D3D12Viewport over the existing fenced frame renderer. The child HWND supplies physical pixel dimensions; the control handles focus/capture, suspension, unload/reload, stop/drain, restart and render-failure reporting.

CharacterLab.Wpf shares the animation/rendering and camera sources with the WinForms and native samples, and adds WPF playback controls and a separate text editor. Core/Framework remain independent of WPF. The adapter occupies the existing Libraries solution group and the sample joins Samples.

Qualification adds bounded WPF presentation and a host scenario covering resize/current-DPI sizing, text focus and tab navigation, minimize/restore, visibility, unload/reload, intentional render failure, restart, close from presentation and HWND teardown. Both runtimes also build and run it from isolated fresh packages in Debug/Release. WPF/BAML NativeAOT and physical multi-monitor DPI transitions are not claimed.

Package checks include WPF-only framework references and guard against desktop-framework dependencies leaking into the base SDK. Release staging, availability checks and publishing use the same candidate package list, including WPF and the DXC build tool. This remains Preview 4 development; no versioned release note or publication is requested.

Validation: all six fresh qualification jobs passed on head bc581470b4fc1d1444e441691f44dc3b81016525; the tested source tree is d3ff1dcfa73738ab128a9181bca33b98120230cd.

  • Windows Debug/Release built and packed the SDK; all 15 runnable samples built from isolated fresh packages for .NET 10 and 11.
  • WPF bounded presentation and lifecycle/focus/resize/failure/restart/teardown tests passed from those packages in both configurations and runtimes.
  • Windows .NET 10/11 source WARP samples and Windows/Linux JIT/NativeAOT ownership fixtures passed. This qualifies WPF JIT independently of the native interop AOT fixtures.
  • Release staging verified all 16 package/symbol archives for the eight-package candidate set.
  • The local .NET 11 cross-build, including XAML and the host fixture, completed with zero warnings/errors.

Add dispatcher-owned D3D12 HWND hosting with physical pixel sizing, fenced retirement, focus/capture handling, restart and failure reporting. Share CharacterScene across WinForms, native Win32 and WPF, and qualify WPF lifecycle and isolated package consumption on both runtimes. Align package validation and release publishing with the candidate manifest.
Keep the shared candidate manifest in dependency order now that NuGet availability checks and publishing both consume it.
@atcarter714 atcarter714 reopened this Nov 22, 2026
@atcarter714
atcarter714 merged commit a35ea78 into main Nov 22, 2026
6 of 12 checks passed
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.

1 participant