Hello,
I want to bind the DataObject.Pasting event of a TextBox with the EventToCommandBehavior to a command of the viewmodel:
<
TextBox
Grid.Column
=
"3"
HorizontalContentAlignment
=
"Left"
Text
=
"{Binding Offset, UpdateSourceTrigger=PropertyChanged}"
VerticalContentAlignment
=
"Center"
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding OffsetPastingCommand}"
EventName
=
"DataObject.Pasting"
PassEventArgsToCommand
=
"True"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
</
TextBox
>
However, in the example above, the message "DataObject.Pasting event cannot be found" appears. What is the right way to bind the pasting event?
Thanks a lot
Christoph