Skip to content

feat: Add Uno Platform 7.0 samples - #966

Merged
MartinZikmund merged 11 commits into
masterfrom
dev/mazi/70-samples
Nov 10, 2026
Merged

MartinZikmund merged 11 commits into
masterfrom
dev/mazi/70-samples

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Demo samples for the Uno Platform 7.0 release blogpost. Each sample is a standalone single-project app (desktop + WebAssembly heads) with a README and a screenshot, and is listed in doc/samples.md.

Sample Shows
RichTextEditor RichEditBox with a formatting toolbar, plus a RichTextBlock flowing through two RichTextBlockOverflow columns with a TextHighlighter and cross-column selection
PhotoGallery ItemsView + LinedFlowLayout with live LineHeight, spacing, ItemsJustification and ItemsStretch controls (procedurally generated images)
DrawingBackends One animated Composition scene rendered by the Skia backend or the opt-in WebGPU backend (--backend skia|webgpu, registered with UnoPlatformHostBuilder.GraphicsBackend)
SmoothScrolling 1,000-item feed in ScrollView and ListView with a live readout of frames and fresh scroll positions per second
LottieBuiltIn Lottie with no extra package: AnimatedVisualPlayer + LottieVisualSource JSON, the same animation compiled with LottieGen, and WinUI's ProgressRing / AnimatedIcon
CustomTitleBar Window.ExtendsContentIntoTitleBar + SetTitleBar with back/pane buttons, search and a profile picture

Before merging (why this is a draft)

  • All samples pin Uno.Sdk.Private 7.0.0-dev.2097 Done in fb10fa69: every sample now uses the public Uno.Sdk 7.0.0-dev.130 (Uno 7.0.0-dev.2538). Bump to the 7.0 GA Uno.Sdk once it ships.
  • DrawingBackends temporary _UnoWebGpuDetectUsage target Removed in 593b6ab8: the public SDK loads DetectWebGpuUsage fine.
  • RichTextEditor still has a file-level #pragma warning disable Uno0001: the TOM interfaces (ITextRange, ITextSelection, ITextCharacterFormat, ITextParagraphFormat) still carry stale [Uno.NotImplemented] attributes on Skia although the members work. Remove the pragma once uno drops them.
  • CustomTitleBar uses a hand-built title bar, not the WinUI TitleBar control, which currently renders nothing on Skia desktop (XamlRoot.ContentIslandEnvironment is not implemented). It also registers Passthrough regions manually, because on Win32 the Caption region currently wins over Passthrough. XamlRoot.ContentIslandEnvironment is implemented on uno master now, so switching to TitleBar may be possible. That needs a runtime check before the sample changes.

Validation

  • After the SDK switch: DrawingBackends dotnet build -c Release -f net10.0-desktop gives 0 warnings and 0 errors, and the app starts with both --backend skia and --backend webgpu (smoke test only, no visual check). The other samples are left to CI.

  • dotnet build -c Release -f net10.0-desktop for every sample: 0 warnings, 0 errors.

  • Each sample was launched on Windows (Skia desktop) and its key interactions were driven through UI Automation (winapp ui). The WebAssembly heads were not built or run.

  • Screenshots in each docs/assets/sample.png come from these Release builds.

🤖 Generated with Claude Code

https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7

MartinZikmund and others added 11 commits October 10, 2026 20:20
…from LottieGen and JSON

Replaces the dashed ray ring with rotated ray groups and keeps trim ends above 0, avoiding
current Uno Composition (dash scaling, TrimEnd default) and Skottie (dash offset) differences.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
Uno.Sdk 7.0.0-dev.130 on nuget.org pins Uno 7.0.0-dev.2538, well past the
private 7.0.0-dev.2097 build these samples were written against.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6
The empty _UnoWebGpuDetectUsage target only papered over the private SDK's
task-name mismatch (MSB4062). The public Uno.Sdk loads the task fine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6
@MartinZikmund
MartinZikmund marked this pull request as ready for review November 9, 2026 17:30
Copilot AI balanced review requested due to automatic review settings November 9, 2026 17:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@ajpinedam ajpinedam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mergify

mergify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@MartinZikmund
MartinZikmund merged commit 0c99107 into master Nov 10, 2026
15 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/70-samples branch November 10, 2026 16:25
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.

4 participants