private void OnContentInstallationTaskAdded(object o, EventArgs eventArgs) { _openDownloadsListBusy.Yield(() => { if (IsVisible && !VisualExtension.IsInputFocused() && AppAppearanceManager.Instance.DownloadsInSeparatePage && AppAppearanceManager.Instance.DownloadsPageAutoOpen) { NavigateTo(new Uri("/Pages/Miscellaneous/DownloadsList.xaml", UriKind.Relative)); } }); }
private void UpdateReferenceSizeForDpiAwareness() { var dpi = _dpi; Logging.Debug(dpi); if (dpi == null) { return; } _updateSizeForDpiAwarenessBusy.Yield(() => { _windowSize.Width = ActualWidth / dpi.ScaleX; _windowSize.Height = ActualHeight / dpi.ScaleY; Logging.Debug($"Reference size: {_windowSize.Width}×{_windowSize.Height}"); }); }
private void ReloadDevices() { _reloadDevicesBusy.Yield(() => EndpointsChanged?.Invoke(this, EventArgs.Empty)); }
private void OnTrackMapSizeChanged(object sender, SizeChangedEventArgs e) { _mapBusy.Yield(UpdateMap); }