Closed arivoir closed 3 years ago
Additionally, the control full type "C1.WPF.Core.C1PathIcon" needs to be specified twice 2.
When adding the attribute
Builder.AddCustomAttributes("C1.WPF.Core.C1PathIcon", new FeatureAttribute(typeof(C1PathIconSuggestedActionProvider)));
And in the SuggestedActionProvider class
public class C1PathIconSuggestedActionProvider : SuggestedActionProvider
{
public override string Type => "C1.WPF.Core.C1PathIcon";
}
What is the reason to having to specify this twice? The DefaultInitializer api looks much cleaner, only one attribute, and it doesn't need to report its "Type"
Hi. Thanks for bringing this to our attention. In the latest preview, you should no longer have to register a separate SuggestionsAttribute (see updated documentation here: metadata registration), and we have removed the Type field.
Why do we need to add 2 attributes to enable "Suggested Actions"
DefaultInitializer seems an analogous feature that only needs one
Builder.AddCustomAttributes("C1.WPF.Core.C1PathIcon", new FeatureAttribute(typeof(C1PathIconInitializer)));
Why 2 attributes?