what if the scenario is
<i:Interaction.Triggers>
<i:EventTrigger EventName="KeyDown">
<cmd:EventToCommand Command="{Binding SearchKey}" PassEventArgsToCommand="True"
CommandParameter="{Binding Text, ElementName=TextSearchCashDrawer}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
what is on enter key press i need to read the text from the textbox and perform search.
SearchKey=new RelayCommand<KeyEventArgs>(e=>
{
if(e.PlatformKeyCode==13) //enter key
{
}
});
using this I can filter which key has been pressed but how to get that parameter if enter key is pressed in this mvvmlight.