User avatar
stonstad
Topic Author
Posts: 248
Joined: 06 Jun 2016, 18:14
Location: Lesser Magellanic Cloud
Contact:

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: 4124
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?
 
User avatar
stonstad
Topic Author
Posts: 248
Joined: 06 Jun 2016, 18:14
Location: Lesser Magellanic Cloud
Contact:

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: 4124
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: Bing [Bot] and 8 guests