-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLoadingOverlay.xaml.cs
38 lines (33 loc) · 988 Bytes
/
LoadingOverlay.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Windows.Controls;
/// <remarks>
/// See Program.cs for license.
/// </remarks>
namespace TerrariaPixelArtHelper
{
/// <summary>
/// Interaction logic for LoadingOverlay.xaml
/// </summary>
public partial class LoadingOverlay : UserControl
{
internal new LoadingOverlayViewModel DataContext => base.DataContext as LoadingOverlayViewModel;
public LoadingOverlay() => this.InitializeComponent();
}
/// <summary>
/// The view model for <see cref="LoadingOverlay" />.
/// </summary>
internal class LoadingOverlayViewModel
{
/// <summary>
/// Whether there is a wait message or not.
/// </summary>
public bool HasWaitMessage => !string.IsNullOrEmpty(this.WaitMessage);
/// <summary>
/// If the Please Wait message should be showing or not.
/// </summary>
public bool ShowPleaseWait { get; set; } = true;
/// <summary>
/// The optional wait message to show below "Please Wait".
/// </summary>
public string WaitMessage { get; set; }
}
}