WP7 Toggle switch in a pivot controller?

Is there a way to control the flick action threshold to enable / disable the toggle switch so that it does not get confused with the navigation on the rotary control?

+4
source share
5 answers

Sorry, but I'm going to avoid your question (I can’t answer it anyway) and suggest you use a different approach.
You could (I suppose) use the checkbox to just as easily provide the opportunity to the person using the application. After the toggle switch has the same functionality as the checkbox (specify / select between two states), it simply implements the interaction in different ways.

The toggle switch was not designed / built (AFAIK) to support use on top of that which also supports the same gesture.
As a general rule of usability, having control over yourself (or even next to each other) that support the same gesture can cause problems for the user. Even if the problems are caused by accidentally triggering the wrong gesture or expectations about how their gesture will be interpreted.

In short: this is a really difficult problem to solve; I don’t think you can with controls as they are; and the problem goes away completely if you use another control to switch anyway.

+6
source

I had the same problem with my coding, we dug it for many hours, and we finally reached the top of the hill, and we came up with a solution. This solution works for bing card management:

on the mouse enter: myMapControl.CaptureMouse (); on the mouse: myMapControl.ReleaseMouseCapture ();

And there you go, when you move around the map, the axis will not make the transition;) If you do not understand, just collect me and I will explain using real code (now I am very busy).

Greetings

+3
source

This solution has recently appeared for people who have experienced gesture conflicts on pano / pivot. You can check it out.

Prevent Scrolling Pivot or Panorama Controls

+2
source

Set the value IsHitTestVisible = false in your root control

+1
source

The solution to this is simple, and I rely on my experience in developing applications for Android and iPhone.

just make sure you only touch the OnMouseLeave event, not OnChecked or OnMouseClick , as they will accidentally fire just by touching the toggle switch.

You want to make sure that they touched this when they let go of the screen, and that (unless you put the switch on the edge of the screen will almost never be in this case

+1
source

All Articles