From a74a875a44e65737bf1b913d94c806498aac1efe Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 20 May 2012 02:07:56 +0000 Subject: 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 --- win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs | 73 ++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs (limited to 'win/CS/HandBrakeWPF/Controls/StatusPanel.xaml.cs') 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 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Interaction logic for StatusPanel.xaml +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Controls +{ + using System.Windows; + using System.Windows.Controls; + + /// + /// Interaction logic for StatusPanel.xaml + /// + public partial class StatusPanel : UserControl + { + /// + /// Initializes a new instance of the class. + /// + public StatusPanel() + { + InitializeComponent(); + } + + /// + /// Dependancy Property for the IsLoading Property + /// + public static readonly DependencyProperty IsLoadingProperty = + DependencyProperty.Register("IsLoading", typeof(bool), typeof(StatusPanel), new UIPropertyMetadata(false)); + + /// + /// Dependancy Property for the Message Property + /// + public static readonly DependencyProperty MessageProperty = + DependencyProperty.Register("Message", typeof(string), typeof(StatusPanel), new UIPropertyMetadata(string.Empty)); + + /// + /// Dependancy Property for the submessage propery + /// + public static readonly DependencyProperty SubMessageProperty = + DependencyProperty.Register("SubMessage", typeof(string), typeof(StatusPanel), new UIPropertyMetadata(string.Empty)); + + /// + /// Gets or sets a value indicating whether IsLoading. + /// + public bool IsLoading + { + get { return (bool)GetValue(IsLoadingProperty); } + set { SetValue(IsLoadingProperty, value); } + } + + /// + /// Gets or sets Message. + /// + public string Message + { + get { return (string)GetValue(MessageProperty); } + set { SetValue(MessageProperty, value); } + } + + /// + /// Gets or sets SubMessage. + /// + public string SubMessage + { + get { return (string)GetValue(SubMessageProperty); } + set { SetValue(SubMessageProperty, value); } + } + } +} -- cgit v1.2.3