Proposal: Bring C# 9 "Init-Only" properties to XAML #2519
Labels
feature proposal
New feature proposal
needs-winui-3
Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)
team-Markup
Issue for the Markup team
Proposal: C# 9 "Init-Only" properties in XAML
Init-only properties are a set-on-initialization-only accessor in C# 9. Morten has suggested that we bring this to XAML: https://twitter.com/dotMorten/status/1263284520364564481
Interesting idea to explore. It would allow the instantiation of read-only / immutable values in XAML markup.
Summary
Unsure if this would require a syntax change/expansion in XAML...?
Rationale
(it would be great if Morten or others could articulate additional rationale & scenarios here--I'm just blitzing Twitter notifications right now so doing light initial job on this proposal)
Scope
Important Notes
Open Questions
The text was updated successfully, but these errors were encountered: