// -------------------------------------------------------------------------------------------------------------------- // // 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); } } } }