void CloseHistoryFlyout() { if (m_fIsHistoryFlyoutOpen) { HistoryFlyout.Hide(); } }
void OnHistoryFlyOutTapped(object sender, TappedRoutedEventArgs e) { Grid grid = (Grid)(sender); Point point = e.GetPosition(null); if (point.Y < (grid.ActualHeight - NumpadPanel.ActualHeight)) { HistoryFlyout.Hide(); } }
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); } } }