user controls - Wpf Fire an Mouse events(Like MouseDown, MouseUp, MouseMove, MouseLeftClick) from ItemsControl which has DataTemplate -


i have data template contains text box. data template called items control. want fire mouse events text box in data template , capture/subscribe mouse event in view model corresponds view has data template.

you can either using eventtriggers in template or eventsetters in templates style. these can either bind codebehind of file declared in or else. codebehind resourcedictionary make code file same name extension .xaml.cs , declare class of resourcedictionary in .xaml file.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -