This article documents the classes and techniques presented in "MVVMExtraLite", a TechNet Gallery sample that you can download, copy the code and use as your own.
This document accompanies the following TechNet Gallery project, which you can download the source code and use however you wish. http://gallery.technet.microsoft.com/VERY-Easy-MVVM-MVVMExtraLit-54353183
<
TextBlock
Text
=
"Click me, EventToCommand, pass param"
FontSize
"16"
FontWeight
"Bold"
TextWrapping
"Wrap"
Width
"150"
HorizontalAlignment
"Center"
VerticalAlignment
Cursor
"Hand"
Background
"AliceBlue"
helper:EventToCommand.Event
"UIElement.MouseLeftButtonDown"
helper:EventToCommand.CommandParameter
"{Binding Text, ElementName=textboxB}"
helper:EventToCommand.Command
"{Binding EventedCommand1}"
/>
XAML guy edited Revision 1. Comment: tweak
XAML guy edited Original. Comment: toc