Microsoft-ui-xaml: x:Static and x:Array markup extensions

Created on 5 Apr 2020  路  4Comments  路  Source: microsoft/microsoft-ui-xaml

Hi,

I realize x:Static and x:Array markup-extensions are not supported in UWP XAML.
Is this on purpose? Can we please have these features implemented?

feature proposal team-Markup

Most helpful comment

No, no x:Array. Another one I've wondered about is <x:List>, which in a c# app would create a List<T>.

All 4 comments

One of the things that x:Bind can do is reference static members, for for example

public static string TestProp = "Hello";

and

<TextBlock Text="{x:Bind local:MainPage.TestProp}" />

Thanks for that @MikeHillberg. To the other subject, is there a way to initialize collections in UWP XAML?

No, no x:Array. Another one I've wondered about is <x:List>, which in a c# app would create a List<T>.

Any update on this? Would be a really nice feature as I used it in some wpf projects.

Was this page helpful?
0 / 5 - 0 ratings