Use complex expressions in DefaultValue
mainWhile standard C# properties usually avoid new expressions in defaults, this generator allows them via the DefaultValueExpression property. This is useful for initializing properties with new objects or structs.
If the type is in a different namespace than the attribute, you must provide the fully qualified name.
public readonly record struct Data();
[AttachedDependencyProperty<object, TreeView>("SelectedItem", DefaultValueExpression = "new Data()",
// Note: Use full namespace if Data is not in the same namespace as the attribute
// DefaultValueExpression = "MyNamespace.Data()")]