cwensley / Portable.Xaml

Portable .NET library for reading/writing xaml files.
Other
157 stars 39 forks source link

Yet another one UsableDuringInitialization fix related to collections #133

Closed yariker closed 5 years ago

yariker commented 5 years ago

I have found that if UsableDuringInitialization(true) object has more than one property set in XAML, such an object would be attached to a parent collection multiple times. Unfortunately, my previous test did not cover this scenario. So this PR includes both the updated test, and the fix.

cm4ker commented 5 years ago

Hi @yariker good catch! Thank you for this PR! Merged!