diff options
| author | Luke <luke.pulverenti@gmail.com> | 2013-02-20 17:10:49 -0800 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2013-02-20 17:10:49 -0800 |
| commit | 845554722efaed872948a9e0f7202e3ef52f1b6e (patch) | |
| tree | 534ab2d11fe4824ed303bb01e885b330631b657e /MediaBrowser.Common/UI/Splash.xaml.cs | |
| parent | 2f142263f080f7b012a0ec2095d350ccf75b49b7 (diff) | |
| parent | 14bbb6804718ef78a8118fe750896ba679e3b6cb (diff) | |
Merge pull request #1 from MediaBrowser/Repo
Repo
Diffstat (limited to 'MediaBrowser.Common/UI/Splash.xaml.cs')
| -rw-r--r-- | MediaBrowser.Common/UI/Splash.xaml.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.Common/UI/Splash.xaml.cs b/MediaBrowser.Common/UI/Splash.xaml.cs new file mode 100644 index 000000000..b9764c05f --- /dev/null +++ b/MediaBrowser.Common/UI/Splash.xaml.cs @@ -0,0 +1,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;
+ }
+ }
+}
|
