microsoft / xaml-designer-extensibility

Extensibility sample code for the Visual Studio XAML Designer
MIT License
67 stars 29 forks source link

CustomButtonParentAdapter called incorrectly #8

Closed mrlacey closed 5 years ago

mrlacey commented 5 years ago

CustomButtonParentAdapter.CanParent is called multiple times (by `[ExternalCode]') even when nothing is being dropped on the designer.

The childType is just an Object so I can't provide more information on where this is coming from.

I'm using VS16.4 preview 2

hemantbajpai4 commented 5 years ago

This is by design.

mrlacey commented 5 years ago

It might be worth updating the comment here to say it may also be called at other times too.

hemantbajpai4 commented 5 years ago

done.