Skip to content

Instantly share code, notes, and snippets.

@jimmylarkin
Created March 4, 2014 11:44
Show Gist options
  • Select an option

  • Save jimmylarkin/9344997 to your computer and use it in GitHub Desktop.

Select an option

Save jimmylarkin/9344997 to your computer and use it in GitHub Desktop.
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