hi all,
how to write Event to Command programmatically in .CS file.
in xaml file i can write like this..
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDoubleClick" >
<cmd:EventToCommand Command="{Binding DoubleClickCommand}"
PassEventArgsToCommand="True"/>
</i:EventTrigger>
</i:Interaction.Triggers>
but i am creating a button through programmatically
i.e
Button b=new Button();
how can i assign Event to Command Behaviour for this button which was created through Programmatically
sharathkumar11