Page 1 of 1

[UNITY] Infinite is not a valid value

Posted: 09 Sep 2014, 14:00
by zyzyx
Hi,
I just startet messing around with styles and templates when I got this error message:
Exception: Loading Assets/_Project/Xaml/GuiTest.xaml
Infinite is not a valid value for FrameworkElement.Width property
Noesis.Error.Check () (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisError.cs:60)
NoesisGUISystem.Noesis_LoadXAML (System.IntPtr& root, System.String xamlFile) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisGUISystem.cs:314)
NoesisGUISystem.Load[FrameworkElement] (System.String xamlFile) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisGUISystem.cs:90)
NoesisGUISystem.LoadXaml[FrameworkElement] (System.String xamlFile) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisGUISystem.cs:34)
NoesisGUIPanel.OnEnable () (at Assets/Plugins/NoesisGUI/Scripts/NoesisGUIPanel.cs:149)
The XAML works fine when I build it in an WPF project. Is there a way to find out which FrameworkElement throws the exception?

Re: [UNITY] Infinite is not a valid value

Posted: 09 Sep 2014, 15:22
by jsantos
Could you share the XAMLs here (or privately in the bugtracker)?

Re: [UNITY] Infinite is not a valid value

Posted: 09 Sep 2014, 15:26
by zyzyx
Shure, I attached the xaml.

EDIT: attaching files doesn't seem to work. Here is a gist:
https://gist.github.com/anonymous/847ebc1fe3bd16611df4

Re: [UNITY] Infinite is not a valid value

Posted: 11 Sep 2014, 11:36
by sfernandez
We found the bug, will be fixed for the next release.

Re: [UNITY] Infinite is not a valid value

Posted: 11 Sep 2014, 11:38
by zyzyx
Great, thanks!

Re: [UNITY] Infinite is not a valid value

Posted: 11 Sep 2014, 11:46
by jsantos
Thanks for reporting the bug in the tracker. Is is the best way to follow it.