You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking issue for the new DependencyProperty generator, for UWP (both .NET Native and .NET 9) and WinUI 3.
This is what using the new generator looks like:
Why was the name of the attribute changed from DependencyPropertyAttribute to GeneratedDepedencyPropertyAttribute?
it causes some conflict with existing DependencyProperty class?
we don't have the word Generated in ObservablePropertyAttribute
In theory we could name it the same, it wouldn't conflict because it's an attribute. But in general, the convention is to use the "Generated" prefix for attributes triggering generation (eg. see [GeneratedComInterface], GeneratedComClass], [GeneratedRegex], etc.). If anything, it's the attributes in the MVVM Toolkit that are kinda breaking this 😅
Note
Originally from #449.
Overview
Tracking issue for the new
DependencyProperty
generator, for UWP (both .NET Native and .NET 9) and WinUI 3.This is what using the new generator looks like:
It only supports instance properties. Attached properties are not currently supported.
Remaining task
Here's a few remaining tasks to track work:
DefaultValueCallback
PropertyMetadata
constructionDefaultValue
andDefaultValueCallback
at the same timeDefaultValueCallback
set tonull
DefaultValueCallback
not matching an existing methodDefaultValueCallback
matching an invalid method (eg. wrong signature)The text was updated successfully, but these errors were encountered: