How to add an array to WinRT XAML

I want to declare an array in XAML. I can do it in WPF. It just cannot find the correct namespace in WinRT. Somebody knows?

<Page xmlns:list="?Something?">

    <Page.Resources>

        <x:Int32 x:Name="MyScalarValue">123</x:Int32>

        <list:Array x:Name="MyValueList">
            <x:Int32>123</x:Int32>
            <x:Int32>456</x:Int32>
        <list:Array>

    </Page.Resources>

</Page>
+5
source share
1 answer

x: Array (and x: Static and several others) in WinRT are currently not supported. In this case, the x: array is not supported in Silverlight, even though developers click on it .

Given the fact that the XAML implementation for WinRT looks closer to SL than WPF , this is not surprising.

- SL4 + WPF:
" , WPF [MS-XAML], - x: Array, x: Code, x: Type mod."

, SL4 WinRT , WinRT, ( ) SL.

+3

All Articles