-
Notifications
You must be signed in to change notification settings - Fork 7
PropertyChangeHelper
HO-COOH edited this page Mar 22, 2026
·
2 revisions
| Name | IsDependencyProperty | Description |
|---|---|---|
N/A |
❌ | No corresponding WinUI3Package IDL runtimeclass was found for this component. |
Helper for OneWay binding.
Usage:
- Inherit
Windows.UI.Xaml.Data.INotifyPropertyChangedinidl
[default_interface]
runtimeclass MyPage : Windows.UI.Xaml.Controls.Page, Windows.UI.Xaml.Data.INotifyPropertyChanged
{
...
};
- Inherit from this class in the implementation class.
/*MyPage.xaml.h*/
#include <include/PropertyChangeHelper.hpp>
namespace winrt::<MyProject>::implementation
{
struct MyPage : MyMusicT<MyMusic>, MvvmHelper::PropertyChangeHelper<MyMusic>
{
int m_value;
void Value(int newValue)
{
compareAndRaise(m_value, newValue, L"Value");
};
}
}