问题描述:

with the WP7 SDK it was possible to use a BlocksPan to prevent a Panorama control from sliding e.g. if you use a horizontal Slider control on it. This does not work anymore with the WP8 sdk. Microsoft says in there guideline: Just do not use a slider on the panorama. But our app (previously designed for wp7) does need it.

Is there any other way for preventing the panorama from sliding? Will our app fail the store verification if we do it regardless to the guidelines?

Please help ;)

best regards,

Chris

网友答案:

Actually is quite simple you should subscribe to the ManipulationStarted event of the panorama control

    m_Panorama.ManipulationStarted += m_Panorama_ManipulationStarted;


    void m_Panorama_ManipulationStarted(object sender, System.Windows.Input.ManipulationStartedEventArgs e)
    {
        m_Panorama.IsHitTestVisible = false;           
    }

maybe you will need and just one more boolean variable

相关阅读:
Top