Trouble with implementing behaviors
Posted: 28 Jan 2020, 22:52
Code: Select all
[NOESIS/E] DragTest.xaml(14): Unknown type 'NoesisApp.Interaction'.
<ContentControl>
<i:Interaction.Behaviors>
<local:DropItemBehavior/>
</i:Interaction.Behaviors>
<Grid Height="320" HorizontalAlignment="Center" Margin="129,12" Width="245" VerticalAlignment="Center">
<Rectangle Stroke="Black" AllowDrop="True" Fill="Black" />
<TextBlock Text="Black" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
</Grid>
</ContentControl>Code: Select all
NsRegisterComponent<Test::DropItemBehavior>();