I couldn't find the ReadOnly
attribute in UWP. I can set the ReadOnly
attribute in WPF like below,
[ReadOnly(true)]
public double? Salary
{
get
{
return _salary;
}
set
{
_salary = value;
RaisePropertyChanged("Salary");
}
}
Is ReadOnly
attribute is not supported in UWP?
You could make the setter private:
public double? Salary
{
get { return _salary; }
private set
{
_salary = value;
RaisePropertyChanged("Salary");
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With