Interaction Element not supported in Unity
Posted: 31 Jul 2019, 22:40
Hi,
I very new to Noesis GUI and I'm trying to apply the Interactivity Behaviour as shown in this page https://www.noesisengine.com/docs/2.2/A ... viors.html. It doesn't show any errors in XAML inside Visual Studio but when I run the code in Unity, it gives me this error
My Dashboard.xaml
I'm not sure what's wrong. Can someone please help me?
I very new to Noesis GUI and I'm trying to apply the Interactivity Behaviour as shown in this page https://www.noesisengine.com/docs/2.2/A ... viors.html. It doesn't show any errors in XAML inside Visual Studio but when I run the code in Unity, it gives me this error
Code: Select all
NoesisException: Assets/Spyglass/Dashboard/Dashboard.xaml(924): Unknown type 'Interaction'. Rethrow as NoesisException
Noesis.Error.Check () (at Assets/NoesisGUI/Plugins/API/Core/NoesisError.cs:17)
Noesis.GUI.Noesis_LoadXaml_ (System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:275)
Noesis.GUI.LoadXaml (System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:125)
NoesisXaml.Load () (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:31)
NoesisView.LoadXaml (System.Boolean force) (at Assets/NoesisGUI/Plugins/NoesisView.cs:333)
NoesisView.OnEnable () (at Assets/NoesisGUI/Plugins/NoesisView.cs:398)
Code: Select all
<UserControl x:Class="Dashboard.Dashboard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
FontFamily="Resources/Fonts/#Roboto"
Foreground="#FFC9CCCF"
d:DesignWidth="1280" d:DesignHeight="720">
...
<Grid>
<Border Background="Silver" Margin="100">
<Rectangle Width="100" Height="50" Fill="Red">
<i:Interaction.Behaviors>
<ei:TranslateZoomRotateBehavior SupportedGestures="Scale" />
</i:Interaction.Behaviors>
</Rectangle>
</Border>
</Grid>
...
<UserControl>