quantum
quantum
CC#
Created by quantum on 7/24/2024 in #help
WPF DataGrid Not Updating
Thank you for your help
3 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
you can check these if you want but it still same i cannot build while i am using this properties
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
PlaceholderTextboxVM.cs
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));
}
}
}
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));
}
}
}
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
No description
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
No description
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
so i stopped looking for solution
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
now it works for sure and i have lost more than one day on here for looking solutions
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
Actually i have changed the viewmodel class name while i am trying solutions at the end i couldnt find any solutions and i have completely removed the viewmodel class i am doing things in directly on PlaceholderTextbox.xaml.cs
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
No description
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
No description
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
now it is same and more
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
No i didnt let me try
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
Yeah i got that error on compilation
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
Yeah i have tried that but still same
18 replies