Files
Chat/ChatController/ChatControlWaitLayer.xaml.cs
LynJet b342974c98 Text zu Datei hinzufügen
Neues Buttondesign
Stapelnachrichtsmodus
Anpassbarer Waitlayer
Eigene MessageBox
2022-07-28 19:18:15 +02:00

38 lines
1023 B
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 = dialogText ?? "Daten werden übertragen. Bitte warten...";
}
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}