[UWP] PropertyChanged doesn't work if binding on ResourceDictionary

Ben 1 Reputation point
2023-01-10T11:27:34.767+00:00

What we want to do: 1. Implement some textblock styles on a spearated ResourceDictionary.xaml (x:bind is not supported) 2. These textblock styles' FontSize can binding an object's property 3. The object can notify PropertyChanged and the styles' FontSize can be changed dynamically

We try many different way. it always works if add these styles in Page.xaml, but always failed if move these styles in ResourceDictionary.xaml(INotifyPropertyChanged.PropertyChanged doesn't works). So.. How can we achieve what we want? Thanks..

Universal Windows Platform (UWP)
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.