This question is locked. New answers and comments are not allowed.
Hi!
I'm using a MVVM Light for my WP8 application. So when an event from RadTextBox raised, i need to send command to the ViewModel. I tried the solution below, but it doesn't work. Can you give another approach?
<
telerikPrimitives:RadTextBox
x:Name
=
"TestBox"
Header
=
"Test"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"LostFocus"
SourceName
=
"TestBox"
>
<
i:InvokeCommandAction
Command
=
"{Binding BoxLostFocusCommand}"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerikPrimitives:RadTextBox
>
ViewModel:
public RelayCommand BoxLostFocusCommand
{
get; set;
}
public TestViewModel()
{
InitializeCommand();
}
public void InitializeCommand()
{
BoxLostFocusCommand = new RelayCommand(() =>
{
});
}