I have a static property, inside a static class, that i have bound to Source property of a frame. It is a OneWay binding. The binding is correctly working the first time but doesn't update the target when property changes. This is my xaml
<Frame x:Name="frmMain" Source="{Binding Source={x:Static currentPage:ActivePages.MainFramePage}, NotifyOnTargetUpdated=True,Mode=OneWay}"/>
This is my static class ActivePages.cs
I followed this link and another linkpublic static class ActivePages { private static Uri mainFramePage; public static Uri MainFramePage { get { return mainFramePage; } set { mainFramePage = value; MainFramePageChanged?.Invoke(null, new PropertyChangedEventArgs("MainFramePage")); } } public static event EventHandler<PropertyChangedEventArgs> MainFramePageChanged; }
How do i update it, when source changes??