private void WindowClosing(object sender, CancelEventArgs e) { FileDownloader.Kill(); VlcApi.Kill(); PodcastFunctions.Kill(); WindowPlacementHandler.GetPlacement(new WindowInteropHelper(this).Handle); }
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); WindowPlacementHandler.SetPlacement(new WindowInteropHelper(this).Handle); OnMainWindowSizeChanged?.Invoke(this.Width, this.Height); mainPage.Visibility = Visibility.Visible; }