c# - WPF Button does not show ToolTip when TapAndHold consecutively -
i'm implementing .net 4.5 wpf application on touchscreen desktop. when testing application, realised tooltips buttons not appear when tap , hold same button twice consecutively.
1) tap , hold on button once, tooltip button appears expected. 2) tap , hold on button again (after initial tooltip has disappeared), tooltip not appear again. 3) tap , hold on button b, tooltip button b appears. 4) tap , hold on button now, tooltip button able appear.
i not sure whether default behavior or it's did somewhere in code caused happen. there can ensure tooltip appears everytime?
thanks help.
</stackpanel.resources> <contentcontrol horizontalalignment="center" verticalalignment="center" > <i:interaction.triggers> <i:eventtrigger eventname="mouseleftbuttondown"> <mvvmlight:eventtocommand command="{binding messageinfovm.showinfomessagecommand}" commandparameter="{binding tooltipok}"/> </i:eventtrigger> </i:interaction.triggers> <button tooltipservice.showondisabled="true" tooltip="{binding tooltipok}" command="{binding okcommand}" /> </contentcontrol>
try tooltipservice.showondisabled="true" or additional event mouseleftbuttondown
Comments
Post a Comment