예제 #1
0
 void CloseHistoryFlyout()
 {
     if (m_fIsHistoryFlyoutOpen)
     {
         HistoryFlyout.Hide();
     }
 }
예제 #2
0
        void OnHistoryFlyOutTapped(object sender, TappedRoutedEventArgs e)
        {
            Grid  grid  = (Grid)(sender);
            Point point = e.GetPosition(null);

            if (point.Y < (grid.ActualHeight - NumpadPanel.ActualHeight))
            {
                HistoryFlyout.Hide();
            }
        }
예제 #3
0
        void ToggleHistoryFlyout(object parameter)
        {
            String viewState = App.GetAppViewState();

            // If app starts correctly in snap mode and shortcut is used for history then we need to load history if not yet initialized.
            if (viewState != ViewState.DockedView)
            {
                if (m_fIsHistoryFlyoutOpen)
                {
                    HistoryFlyout.Hide();
                }
                else
                {
                    // TraceLogger.GetInstance().LogHistoryFlyoutOpenBegin(Model.HistoryVM.ItemSize);
                    HistoryFlyout.Content = m_historyList;
                    // UNO TODO
                    // m_historyList.RowHeight = NumpadPanel.ActualHeight;
                    FlyoutBase.ShowAttachedFlyout(HistoryButton);
                }
            }
        }