Error Defining Thickness in Resource Dictionary?
Should I be able to define a thickness in a resource dictionary (https://stackoverflow.com/questions/198 ... -resources)?
Here are the errors that I get from Noesis. Maybe I'm doing it wrong?
Here are the errors that I get from Noesis. Maybe I'm doing it wrong?
OR<Thickness x:Key="ScreenMargin">20, 75, 20, 0</Thickness>
RESULTS<Thickness x:Key="ScreenMargin" Left="20" Top="75" Right="20" Bottom="0"/>
[noesis] Assets/User Interface/ResourcesCommon.xaml(8): Can't assign property to abstract class 'Thickness'.
UnityEngine.Debug:LogError(Object)
NoesisUnity:UnityLog(Int32, String) (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:116)
Noesis.GUI:Noesis_LoadXaml(String)
Noesis.GUI:LoadXaml(String) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:192)
NoesisXaml:Load() (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:30)
NoesisUnity:LoadApplicationResources() (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:44)
NoesisUnity:Init() (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:24)
NoesisXaml:RegisterDependencies() (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:48)
NoesisXaml:OnEnable() (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:9)
-
-
sfernandez
Site Admin
- Posts: 2061
- Joined:
Re: Error Defining Thickness in Resource Dictionary?
This should work, I just verified it in our XamlPlayer and Unity:
The other construct (specifying struct values as attributes) is not supported in Noesis.
Code: Select all
<Thickness x:Key="ScreenMargin">20, 75, 20, 0</Thickness>
Who is online
Users browsing this forum: No registered users and 3 guests