XAML Array as TypeArgument

LippelLippel DEMember ✭✭

How do you set a type of array as TypeArgument in a XAML file?

I want to set the TypeArgument to byte[]
This seems to be the way to define a byte[] in xaml, but how would I set it to the x:TypeArguments field of the following xaml
<x:Array x:Key="byteArray" Type="{x:Type x:Byte}"/>

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"


  • akiasakuraakiasakura USMember ✭✭

    It is unknown whether it will help you,
    When I use an array in XAML, I declare the following in the namespace and use the list.

    <scg:List x:TypeArguments="x:String"> <x:String>xxxx</x:String> </scg:List>

Sign In or Register to comment.