diff options
author | sr55 <[email protected]> | 2012-05-20 02:07:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-05-20 02:07:56 +0000 |
commit | a74a875a44e65737bf1b913d94c806498aac1efe (patch) | |
tree | f44711db67fcb8ada728df0d1f64355d0d89ea1d /win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs | |
parent | 332f03f3f68dca799a2e50ceb7e34578ac0bcd5f (diff) |
WinGui: Status overlay when scanning. Not sure if this is going to stay, just experimenting with ideas.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4690 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs new file mode 100644 index 000000000..92ca002d5 --- /dev/null +++ b/win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs @@ -0,0 +1,73 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="StatusPanel.xaml.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Interaction logic for StatusPanel.xaml
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.Controls
+{
+ using System.Windows;
+ using System.Windows.Controls;
+
+ /// <summary>
+ /// Interaction logic for StatusPanel.xaml
+ /// </summary>
+ public partial class StatusPanel : UserControl
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="StatusPanel"/> class.
+ /// </summary>
+ public StatusPanel()
+ {
+ InitializeComponent();
+ }
+
+ /// <summary>
+ /// Dependancy Property for the IsLoading Property
+ /// </summary>
+ public static readonly DependencyProperty IsLoadingProperty =
+ DependencyProperty.Register("IsLoading", typeof(bool), typeof(StatusPanel), new UIPropertyMetadata(false));
+
+ /// <summary>
+ /// Dependancy Property for the Message Property
+ /// </summary>
+ public static readonly DependencyProperty MessageProperty =
+ DependencyProperty.Register("Message", typeof(string), typeof(StatusPanel), new UIPropertyMetadata(string.Empty));
+
+ /// <summary>
+ /// Dependancy Property for the submessage propery
+ /// </summary>
+ public static readonly DependencyProperty SubMessageProperty =
+ DependencyProperty.Register("SubMessage", typeof(string), typeof(StatusPanel), new UIPropertyMetadata(string.Empty));
+
+ /// <summary>
+ /// Gets or sets a value indicating whether IsLoading.
+ /// </summary>
+ public bool IsLoading
+ {
+ get { return (bool)GetValue(IsLoadingProperty); }
+ set { SetValue(IsLoadingProperty, value); }
+ }
+
+ /// <summary>
+ /// Gets or sets Message.
+ /// </summary>
+ public string Message
+ {
+ get { return (string)GetValue(MessageProperty); }
+ set { SetValue(MessageProperty, value); }
+ }
+
+ /// <summary>
+ /// Gets or sets SubMessage.
+ /// </summary>
+ public string SubMessage
+ {
+ get { return (string)GetValue(SubMessageProperty); }
+ set { SetValue(SubMessageProperty, value); }
+ }
+ }
+}
|