❔ WPF Binding to collection in static instance not updating list

I have a collection in a static member of a class that's being changed. It should be firing
PropertyChanged
for the property shown below. But the list never updates.
dgPredefined.SetBinding(System.Windows.Controls.ItemsControl.ItemsSourceProperty, new System
    .Windows.Data.Binding("AllItemsSortedByName")
    {
        Source = Data.NetworkMgr.mgr,
        NotifyOnTargetUpdated = true,
    });

The original plan was to declare it in the XAML, but I haven't figured out the equivalent syntax. Can someone tell me what I'm doing wrong? I tried both
NotifyOnTargetUpdated
as shown above and
NotifyOnSourceUpdated
. My orignal impression was the latter is for when the control needs to be notified the source has changed. But after reading the documentation, it looks like it's the other way around. With
Data.NetworkMgr.mgr
,
Data
is a namespace,
NetworkMgr
is a class, and
mgr
is the static instance of
Data.NetworkMgr
.
Was this page helpful?