PropertyChanged is null in winui3.0

jia liang 21 Reputation points
2022-08-27T08:33:12.013+00:00
`public sealed partial class MainWindow:Window,INotifyPropertyChanged  
{  
public event PropertyChangedEventHandler PropertyChanged;  
  
public void OnPropertyChanged([callerMemberName]string propertyName="")  
{  
PropertyChanged?.Invoke(propertyName);  
}  
}`  

PropertyChanged is null.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
726 questions
{count} votes