Beispiel #1
0
 void CloseMemoryFlyout()
 {
     if (m_fIsMemoryFlyoutOpen)
     {
         MemoryFlyout.Hide();
     }
 }
Beispiel #2
0
        void OnHideMemoryClicked()
        {
            if (!m_fIsMemoryFlyoutOpen)
            {
                this.Focus(FocusState.Programmatic);
            }

            MemoryFlyout.Hide();
        }
Beispiel #3
0
        void OnMemoryFlyOutTapped(object sender, TappedRoutedEventArgs e)
        {
            Grid  grid  = (Grid)(sender);
            Point point = e.GetPosition(null);

            if (point.Y < (grid.ActualHeight - NumpadPanel.ActualHeight))
            {
                MemoryFlyout.Hide();
            }
        }
Beispiel #4
0
        void ToggleMemoryFlyout(object sender, object args)
        {
            String viewState = App.GetAppViewState();

            if (viewState != ViewState.DockedView)
            {
                if (m_fIsMemoryFlyoutOpen)
                {
                    MemoryFlyout.Hide();
                }
                else
                {
                    // TraceLogger.GetInstance().LogMemoryFlyoutOpenBegin(Model.MemorizedNumbers.Size);
                    MemoryFlyout.Content = GetMemory();
                    // UNO TODO
                    // m_memory.RowHeight = NumpadPanel.ActualHeight;
                    FlyoutBase.ShowAttachedFlyout(MemoryButton);
                }
            }
        }