private void Frame_MouseLeave(object sender, MouseEventArgs e) { _lastFrameMouseWasIn = null; ThemeEditorPage.UpdateGlobalUI(); SetThemeStatusInUI("", themesFrame: (Frame)sender, doNotSetIfContains: new[] { App.Text.Active, App.Text.Editing }); }
private void Theme_MouseDoubleClick(object sender, MouseButtonEventArgs e) { App.Config.ActiveTheme = ((Frame)sender).Tag.ToString(); App.Config.Save(); SetThemeStatusInUI("", removeActiveOnOtherTextBoxes: true); SetThemeStatusInUI(App.Text.Active, themesFrame: (Frame)sender); ThemeEditorPage.UpdateGlobalUI(); }
private async void Frame_MouseEnter(object sender, MouseEventArgs e) { var lastFrameMouseWasIn = _lastFrameMouseWasIn = (string)((Frame)sender).Tag; await Task.Delay(TimeSpan.FromSeconds(0.5)); if (lastFrameMouseWasIn == _lastFrameMouseWasIn) { ThemeEditorPage.UpdateGlobalUI(lastFrameMouseWasIn); SetThemeStatusInUI(App.Text.Showing, themesFrame: (Frame)sender, doNotSetIfContains: new[] { App.Text.Active, App.Text.Editing }); } }