You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Common/UI/Splash.xaml.cs

33 lines
852 B

using MahApps.Metro.Controls;
using MediaBrowser.Model.Progress;
using System;
using System.Windows;
namespace MediaBrowser.Common.UI
{
/// <summary>
/// Interaction logic for Splash.xaml
/// </summary>
public partial class Splash : MetroWindow
{
public Splash(Progress<TaskProgress> progress)
{
InitializeComponent();
progress.ProgressChanged += ProgressChanged;
Loaded+=SplashLoaded;
}
void ProgressChanged(object sender, TaskProgress e)
{
lblProgress.Text = e.Description + "...";
}
private void SplashLoaded(object sender, RoutedEventArgs e)
{
// Setting this in markup throws an exception at runtime
ShowTitleBar = false;
}
}
}