Created
March 4, 2014 11:44
-
-
Save jimmylarkin/9344997 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace McKinsey.MarketSimulator.Controls | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using MahApps.Metro.Controls; | |
| using MahApps.Metro.Controls.Dialogs; | |
| /// <summary> | |
| /// Loading spin dialog | |
| /// </summary> | |
| public partial class LoadingDialog : BaseMetroDialog | |
| { | |
| /// <summary> | |
| /// The message property | |
| /// </summary> | |
| public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(LoadingDialog), new PropertyMetadata(default(string))); | |
| /// <summary> | |
| /// Initializes a new instance of the <see cref="LoadingDialog"/> class. | |
| /// </summary> | |
| /// <param name="parentWindow">The parent window.</param> | |
| internal LoadingDialog(MetroWindow parentWindow) | |
| : this(parentWindow, null) | |
| { | |
| InitializeComponent(); | |
| } | |
| /// <summary> | |
| /// Initializes a new instance of the <see cref="LoadingDialog"/> class. | |
| /// </summary> | |
| /// <param name="parentWindow">The parent window.</param> | |
| /// <param name="settings">The settings.</param> | |
| internal LoadingDialog(MetroWindow parentWindow, MetroDialogSettings settings) | |
| : base(parentWindow, settings) | |
| { | |
| InitializeComponent(); | |
| } | |
| /// <summary> | |
| /// Gets or sets the message. | |
| /// </summary> | |
| /// <value> | |
| /// The message. | |
| /// </value> | |
| public string Message | |
| { | |
| get { return (string)GetValue(MessageProperty); } | |
| set { SetValue(MessageProperty, value); } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment