private void ScrollViewer_ViewChanging(object sender, ScrollViewerViewChangingEventArgs e)
        {
            if (m_ignoreZoomChanges)
            {
                return;
            }

            // If the zooms don't match go full screen
            if (Math.Abs(m_minZoomFactor - ui_scrollViewer.ZoomFactor) > .001)
            {
                m_host.ToggleFullScreen(true);
            }
        }
Ejemplo n.º 2
0
        private bool ToggleFullScreen(bool goFullScreen)
        {
            // Set the state
            bool didAction = m_host.ToggleFullScreen(goFullScreen);

            // Update the icon
            ui_fullScreenIcon.Symbol = m_host.IsFullScreen() ? Symbol.BackToWindow : Symbol.FullScreen;

            // Set our manipulation mode to capture all input
            ManipulationMode = m_host.IsFullScreen() ? ManipulationModes.All : ManipulationModes.System;

            return(didAction);
        }