cwensley / Portable.Xaml

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

IsUsableDuringInitialization implementation #119

Closed cm4ker closed 6 years ago

cm4ker commented 6 years ago

Related to: https://github.com/cwensley/Portable.Xaml/issues/110

cm4ker commented 6 years ago

Yea. This is ready for review but i'm so doubt for my interpretation and implementation of this option.

The difference between enabled and disabled IsUsableDuringInitialization(IUDI). With with feature enabled when we construct object after initialization we are try to set the member. And If the "Construction depth" more than 1(cocunting from root object) and IUDI enabled we Immidiate assigin new created property instance to the parent.

cwensley commented 6 years ago

Beautiful! Thanks yet again.