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 MyProject.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; |
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; |
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
LoadingDialog loadingDialog = new LoadingDialog(mainWindow) { Title = "Please wait...", Message = string.Format("Loading project {0} ...", projectName) }; | |
await mainWindow.ShowMetroDialogAsync(loadingDialog).ContinueWith( | |
async (t) => | |
{ | |
// do something | |
}); |
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
public partial class LoadingDialog : BaseMetroDialog | |
{ | |
public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(MessageDialog), new PropertyMetadata(default(string))); | |
internal LoadingDialog(MetroWindow parentWindow) | |
: this(parentWindow, null) | |
{ | |
} | |
internal LoadingDialog(MetroWindow parentWindow, MetroDialogSettings settings) |