Repository navigation
Description
Summary
Porting microsoft/calculator to Uno 7 desktop, these WinUI/UWP members are not implemented. Each one aborted app startup — they sit on OnLaunched / first-page-construction paths, so the app launched, created its window, and rendered nothing, with no diagnostic pointing at the cause. Filing together since they are the same class of gap found on one startup path; happy to split if you'd prefer one each.
| Member | Behaviour | Upstream call site |
|---|---|---|
Windows.Globalization.NumberFormatting.DecimalFormatter.FormatUInt(ulong) |
throws | LocalizationSettings.Initialize builds its 0-9 digit table with it |
Microsoft.UI.Xaml.SizeHelper.FromDimensions(float, float) |
throws | App.OnAppLaunch computing the minimum window size |
Windows.ApplicationModel.Activation.LaunchActivatedEventArgs.User |
throws | App.OnLaunched → NavCategoryStates.SetCurrentUser(args.User.NonRoamableId) |
Windows.ApplicationModel.UserActivities.UserActivityRequestManager.GetForCurrentView() |
throws | MainPage ctor, registering UserActivityRequested |
Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView() |
throws | LocalizationSettings |
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView() / SetPreferredMinSize / TryResizeView / PreferredLaunchWindowingMode |
throw | App.OnAppLaunch window sizing |
Microsoft.UI.Text.RichEditTextDocument.GetMath / SetMath |
missing entirely | MathRichEditBox — compile error, not runtime |
RevealBorderBrush / RevealBackgroundBrush .TargetTheme |
missing entirely | App.xaml reveal styles — compile error |
RichEditBox.ContentLinkForegroundColor / ContentLinkBackgroundColor |
missing entirely | App.xaml — compile error |
GetMathMode/SetMathMode exist on RichEditTextDocument, but WinUI's GetMath/SetMath do not.
Why the runtime ones hurt disproportionately
They are not in rarely-hit corners — they are on the startup path of a normal WinUI app. Because each throws, OnLaunched unwinds before Window.Activate(), and the observable result is a live process with an invisible window and nothing logged. It took logging every first-chance exception to find them, one rebuild per member, because each fix only revealed the next.
For several of these a benign default would let a large amount of unmodified WinUI code run:
LaunchActivatedEventArgs.User→ nullApplicationView.SetPreferredMinSize/TryResizeView/PreferredLaunchWindowingMode→ no-op (the desktop host owns window sizing anyway)UserActivityRequestManager.GetForCurrentView()→ an instance whose event simply never raisesSizeHelper.FromDimensions→new Size(w, h)
That pattern — no-op or sentinel instead of throw, for APIs whose absence is not observable — would have turned all six runtime blockers into non-events.
Notes
Verified on Uno.Sdk.Private 7.0.0-dev.579, net10.0-desktop, Release. Related: #24288 makes the same argument for ApplicationView.GetApplicationViewIdForWindow.
Activity