You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there currently support for observable properties behind interfaces? For example suppose I have an interface with a property such as the code shown below. Is the expected behavior of the community toolkit to allow a UI binding to the CurrentStatus property of the Interface?
public interface IWeatherForecaster
{
string CurrentStatus { get; set; }
}
public class WeatherForecaster : ObservableObject, IWeatherForecaster
{
[ObservableProperty]
private currentStatus;
public async Task GetCurrentWeatherAsync()
{
CurrentStatus = “Loading the weather”;
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there currently support for observable properties behind interfaces? For example suppose I have an interface with a property such as the code shown below. Is the expected behavior of the community toolkit to allow a UI binding to the CurrentStatus property of the Interface?
Beta Was this translation helpful? Give feedback.
All reactions