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

            MemoryFlyout.Hide();
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
                }
            }
        }