stonstad
Topic Author
Posts: 54
Joined: 06 Jun 2016, 18:14

ResourceDictionary x:Single Support

02 Mar 2019, 07:42

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
 
User avatar
jsantos
Site Admin
Posts: 2347
Joined: 20 Jan 2012, 17:18
Contact:

Re: ResourceDictionary x:Single Support

02 Mar 2019, 13:44

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?
 
stonstad
Topic Author
Posts: 54
Joined: 06 Jun 2016, 18:14

Re: ResourceDictionary x:Single Support

02 Mar 2019, 21:23

OK -- for others that may encounter this problem -- use the namespace "xmlns:sys="clr-namespace:System;assembly=mscorlib"
 
User avatar
jsantos
Site Admin
Posts: 2347
Joined: 20 Jan 2012, 17:18
Contact:

Re: ResourceDictionary x:Single Support

02 Mar 2019, 22:04

Thanks for the report!

Who is online

Users browsing this forum: No registered users and 2 guests