In my UWP application, I have a SplitView which contains different pages as frames. This works without any Problem. Now I need to update some content of the SplitViewPane. For an example, I have a RadioButton in my SplitView, which is called Home. Behind this text, I have an Ellipse with a TextBlock for indicating notifications. So I need a way to update this TextBlock from other pages or classes. I have implemented a class with the INotifyPropertyChanged Event and set the binding to this TextBlock, but I Need to set the Content somewhere.
/Edit 1
This is my Class:
public class Notification : INotifyPropertyChanged
{
private int _notification;
public int notification
{
get
{
return _notification;
}
set
{
_notification = value;
RaisePropertyChanged();
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged([CallerMemberName] string name = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
}