using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace WpfApp2.ViewModels
{
internal class PlaceholderTextboxVM : INotifyPropertyChanged
{
#region Properties
private string placeholder = "Placeholder";
public string Placeholder
{
get { return placeholder; }
set { placeholder = value; OnPropertyChanged(); }
}
private string text = "";
public string Text
{
get { return text; }
set { text = value; OnPropertyChanged(); }
}
private bool isclearable = false;
public bool IsClearable
{
get { return isclearable; }
set { isclearable = value; OnPropertyChanged(); }
}
private bool ispassword;
public bool IsPassword
{
get { return ispassword; }
set { ispassword = value; OnPropertyChanged(); }
}
#endregion
public event PropertyChangedEventHandler? PropertyChanged = null;
protected void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}