在工作中,之前使用C#winform開發介面時候,直接使用button的事件buttondown和buttonup實現鼠標的按下和抬起;
現在需要使用WPF和BLEND,使用了MVVM的架構,click事件可以很好的實現了,但是遇到buttondown和buttonup的使用,就遇到困難了;
下面是我click事件的使用:
<Button x:Name="page1button" Command="{Binding MySettingWindowVM.ShowPageOneCommond}" Content="PAGE 1"/>
ShowPageOneCommond = new CommondHelper(new Action<object>(showPageOneCommondAction));
buttondown和buttonup該如何實現?
研究了好一會,作為新人越看越亂,求幫忙!