Ejemplo n.º 1
0
        private void ToggleRawText(object sender, TappedRoutedEventArgs e)
        {
            if (HideRawView.GetCurrentState() == ClockState.Active || ShowRawView.GetCurrentState() == ClockState.Active)
            {
                return;
            }

            if (rawView.Visibility == Visibility.Visible)
            {
                HideRawView.Begin();
            }
            else
            {
                ShowRawView.Begin();
            }
        }
Ejemplo n.º 2
0
        private void Page_KeyDown(object sender, KeyRoutedEventArgs e)
        {
            var controlPressed = (Window.Current.CoreWindow.GetKeyState(Windows.System.VirtualKey.Control).HasFlag(CoreVirtualKeyStates.Down));

            if (e.Key == Windows.System.VirtualKey.F9 && controlPressed)
            {
                if (HideRawView.GetCurrentState() == ClockState.Active || ShowRawView.GetCurrentState() == ClockState.Active)
                {
                    return;
                }

                if (rawView.Visibility == Visibility.Visible)
                {
                    HideRawView.Begin();
                }
                else
                {
                    ShowRawView.Begin();
                }
            }
        }