Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Expose XamlDirect for WinUI #10131

Closed
mikernet opened this issue Nov 2, 2024 · 1 comment
Closed

Proposal: Expose XamlDirect for WinUI #10131

mikernet opened this issue Nov 2, 2024 · 1 comment
Labels
feature proposal New feature proposal

Comments

@mikernet
Copy link

mikernet commented Nov 2, 2024

Proposal: XamlDirect for WinUI

Summary

Not sure if I am missing something but XamlDirect APIs that were available for UWP do not appear to be present in WinUI 3.

I was interested in using them to improve the performance of Uno Platform's C# Markup feature when running on WinAppSDK by using XamlDirect where possible.

Rationale

The documentation for XamlDirect explains the rationale better than I ever could: https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.core.direct?view=winrt-22621#remarks

XamlDirect is purpose built for middleware that predominantly use imperative APIs to create UI instead of markup. With XamlDirect APIs, you can achieve performance parity with the XAML parser even when creating UI imperatively in code.

XamlDirect APIs can be used side-by-side with traditional APIs and take advantage of the pay for play performance improvements.

It was designed specifically for this exact scenario.

Scope

Expose all of UWP's XamlDirect-related functionality.

@mikernet mikernet added the feature proposal New feature proposal label Nov 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Nov 2, 2024
@karkarl
Copy link
Contributor

karkarl commented Nov 7, 2024

XamlDirect was a retired experiment that was not carried to WinUI3. Closing as not planned.

@karkarl karkarl closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature proposal New feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants