Maximus :
<Button Command=\"{Binding TakeSnapshotCommand}\" \nCommandParameter=\"{Binding ElementName=media}\"/>\n\n\nWhere TakeSnapshotCommand is a class implementing ICommand like RelayCommand. Additionaly you send parameter T, in this case T is MediaElement so you will have following declaration. \n\nprivate RelayCommand<MediaElement> _takeSnapshotCommand;\npublic RelayCommand<MediaElement> TakeSnapshotCommand\n{\nget{ return _takeSnapshotCommand ??(_takeSnapshotCommand = new RelayCommand<MediaElement>(YourMethodTakingMediaElementAsParameter));}\n}\n",
2015-07-10T07:13:38