using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace WindowsPhone.Recipes.Push.Client.Controls { public partial class ProgressBarWithText : UserControl { public ProgressBarWithText() { InitializeComponent(); stackPanel.DataContext = this; } #region ShowProgress /// /// ShowProgress Dependency Property /// public static readonly DependencyProperty ShowProgressProperty = DependencyProperty.Register("ShowProgress", typeof(bool), typeof(ProgressBarWithText), new PropertyMetadata((bool)false)); /// /// Gets or sets the ShowProgress property. This dependency property /// indicates whether to show the progress bar. /// public bool ShowProgress { get { return (bool)GetValue(ShowProgressProperty); } set { SetValue(ShowProgressProperty, value); } } #endregion #region Text /// /// Text Dependency Property /// public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(ProgressBarWithText), new PropertyMetadata((string)"")); /// /// Gets or sets the Text property. This dependency property /// indicates what is the text that appears above the progress bar. /// public string Text { get { return (string)GetValue(TextProperty); } set { SetValue(TextProperty, value); } } #endregion } }