Page 1 of 1

ResourceDictionary x:Single Support

Posted: 02 Mar 2019, 07:42
by stonstad
Should this code work?

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<x:Single x:Key="ContentFontSize">13</x:Single>

</ResourceDictionary

I am getting "Single" type not found errors when I try single, double, or string. I am trying with and without the x: namespace prefix. Is this something that is supported in Noesis, or maybe I am getting it wrong?

Thanks,
Shaun

Re: ResourceDictionary x:Single Support

Posted: 02 Mar 2019, 13:44
by jsantos
It seems we are not compatible with the XAML 2009 way to use intrinsic types. You need to use sys:Single. Could you please open a ticket about it?

Re: ResourceDictionary x:Single Support

Posted: 02 Mar 2019, 21:23
by stonstad
OK -- for others that may encounter this problem -- use the namespace "xmlns:sys="clr-namespace:System;assembly=mscorlib"

Re: ResourceDictionary x:Single Support

Posted: 02 Mar 2019, 22:04
by jsantos
Thanks for the report!