DataContextChanged event?
Posted: 07 Jul 2015, 22:21
Is there no DataContextChanged event? I am currently using a workaround by overriding the metadata for DataContextProperty as follows:
But I'm not sure if there are side effects of doing this?
Also, the forums should allow us to search terms longer than 14 characters... I couldn't do a search for DataContextChanged because it's too long :/
Code: Select all
DataContextProperty.OverrideMetadata(typeof(MyView), new FrameworkPropertyMetadata(null, (o, args) =>
{
/* Do stuff when data context changes */
}));
Also, the forums should allow us to search terms longer than 14 characters... I couldn't do a search for DataContextChanged because it's too long :/