This question is locked. New answers and comments are not allowed.
Hi,
I’m trying to use the RadAutoCompleteBox combined with a MVVMLight ViewModel. Due to MVVMs
design principles I have to use commands instead of events which got me to
Expression Blends Behaviours.
My implementation
<Page
xmlns:Input="using:Telerik.UI.Xaml.Controls.Input"
xmlns:Interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:Core="using:Microsoft.Xaml.Interactions.Core">
<Input:RadAutoCompleteBox x:Name="AutoCompleteBox" ItemsSource="{Binding Profiles}" FilterMemberPath="Name" FilterMode="Contains" DisplayMemberPath="Name" HorizontalAlignment="Left" Margin="10,29,0,0" Grid.Row="1" VerticalAlignment="Top">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="SelectionChanged">
<Core:InvokeCommandAction Command="{Binding ShowDetailsCommand}"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Input:RadAutoCompleteBox>
results in the following exception being thrown:
WinRT information: Cannot add instance of type 'Microsoft.Xaml.Interactions.Core.EventTriggerBehavior' to a collection of type 'Microsoft.Xaml.Interactivity.BehaviorCollection'
Is it possible to use Teleriks RadAutoCompleteBox for Windows Universal in combination with Expression Blends Behaviours? if so what am I doing wrong?
Kind regards,
Ingmar
I’m trying to use the RadAutoCompleteBox combined with a MVVMLight ViewModel. Due to MVVMs
design principles I have to use commands instead of events which got me to
Expression Blends Behaviours.
My implementation
<Page
xmlns:Input="using:Telerik.UI.Xaml.Controls.Input"
xmlns:Interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:Core="using:Microsoft.Xaml.Interactions.Core">
<Input:RadAutoCompleteBox x:Name="AutoCompleteBox" ItemsSource="{Binding Profiles}" FilterMemberPath="Name" FilterMode="Contains" DisplayMemberPath="Name" HorizontalAlignment="Left" Margin="10,29,0,0" Grid.Row="1" VerticalAlignment="Top">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="SelectionChanged">
<Core:InvokeCommandAction Command="{Binding ShowDetailsCommand}"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Input:RadAutoCompleteBox>
results in the following exception being thrown:
WinRT information: Cannot add instance of type 'Microsoft.Xaml.Interactions.Core.EventTriggerBehavior' to a collection of type 'Microsoft.Xaml.Interactivity.BehaviorCollection'
Is it possible to use Teleriks RadAutoCompleteBox for Windows Universal in combination with Expression Blends Behaviours? if so what am I doing wrong?
Kind regards,
Ingmar