I want to change something in view(user-control) class from itself Presentation class. For example i want to change button content from Presentation.
@Extra Info: change something refer to make a change in Controls-visual or something like that.
so How I do That?
I want to change something in view(user-control) class from itself Presentation class. For example
Share
public class XXXPresenter:INotifyPropertyChanged{
private string _buttonContent;
public string ButtonContent{
get{return _buttonContent;}
set{_buttonContent=value; RaisePropertyChanged(“ButtonContent”);}
}
}
in XAML
As long the DataContext of the button/parent is set correctly any changes to the ButtonContent property in the presenter, should reflect in the UI