Files
Chat/ChatController/ChatControlWaitLayer.xaml.cs
LynJet 12bacea6df .
2022-08-01 13:25:20 +02:00

38 lines
1.0 KiB
C#

using System.ComponentModel;
using System.Runtime.CompilerServices;
using ChatController.Annotations;
namespace ChatController
{
public partial class ChatControlWaitLayer : INotifyPropertyChanged
{
private string _DialogText;
public string DialogText
{
get => _DialogText;
set
{
_DialogText = value;
OnPropertyChanged(nameof(DialogText));
}
}
public ChatControlWaitLayer(string dialogText = null)
{
InitializeComponent();
DataContext = this;
DialogText = string.IsNullOrWhiteSpace(dialogText) ? "Daten werden übertragen. Bitte warten..." : dialogText;
}
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}