How do I lock a pivot when the Holding event is triggered?

1

I'm wanting that when the Holding event is triggered, I can block the movement of my pivot .

I have tried to use the IsEnable and IsHitTestVisible properties, however I can still do the swipe during the holding . The only property that worked was IsLocked , however, it "deletes" the header, behavior that is not desired for the application.

Has anyone gone through and solved this problem?

    
asked by anonymous 19.05.2015 / 19:34

1 answer

1

Take a look at here and here

In both cases it is shown how to disable the swipe for Pivot. See:

public MainPage()
{
    InitializeComponent();
    Touch.FrameReported += (s, e) =>
    {
        if (e.GetPrimaryTouchPoint(slider1).Action == TouchAction.Up)
        { 
            pivot1.IsHitTestVisible = true; 
        }
    };
}

private void slider1_ManipulationStarted(object sender
    , ManipulationStartedEventArgs e)
{
    pivot1.IsHitTestVisible = false;
}

Another possibility is to set the UseOptimizedManipulationRouting="False" property.

    
17.06.2015 / 14:54