blob: b9764c05fd26952d74438791efc36a362d46f8c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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;
}
}
}
|