(Unity3d) NoesisException: Unknown member BitmapImage.UriSource
Posted: 20 Jun 2017, 21:39
NoesisGUI is choking on the XAML below. It works if I host the control in a WPF window, but Unity doesn't seem to like it. What am I doing that Noesis and Unity don't like?
Code: Select all
<Button VerticalAlignment="Center" HorizontalAlignment="Center" Background="#00DDDDDD" BorderBrush="#00707070">
<Image Source="../Images/NewGame.png" Width="200">
<Image.Triggers>
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<Storyboard x:Name="NewGameAnimation" Duration="0:0:2">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Source">
<DiscreteObjectKeyFrame KeyTime="0:0:0">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="../Images/NewGame.png" />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:2">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="../Images/NewGameGlow.png" />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Button.MouseLeave">
<BeginStoryboard>
<Storyboard Duration="0:0:2">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Source">
<DiscreteObjectKeyFrame KeyTime="0:0:0">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="../Images/NewGameGlow.png" />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:2">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="../Images/NewGame.png" />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Image.Triggers>
</Image>
</Button>