win universal app - C#: PointerPressed has been called twice when I click the image -
i beginner in uwp. wanna add click event image change splitview
's open-status. have image in ma xaml:
<image x:name="image_1_6" horizontalalignment="left" height="200" margin="1225,559,-171,0" verticalalignment="top" width="200" source="assets\images.jpg" pointerpressed="image_1_6_pointerpressed"/>
i define image_1_6_pointerpressed
this:
private void image_1_6_pointerpressed(object sender, windows.ui.xaml.input.pointerroutedeventargs e) { mysplitview.ispaneopen = !mysplitview.ispaneopen; }
but when click on image mysplitview
open , close! can body me on please? thanks.
pointerpressed
doesn't working click event. calls when pressed , keep button , when leave button event finishes. when click on image think event calls twice! should call tapped
event this.
<image x:name="image_1_6" horizontalalignment="left" height="200" margin="1225,559,-171,0" verticalalignment="top" width="200" source="assets\images.jpg" tapped="image_1_6_pointerpressed"/>
Comments
Post a Comment