VincentH-Net / CSharpForMarkup

Concise, declarative C# UI markup for .NET browser / native UI frameworks
MIT License
748 stars 43 forks source link

Register default properties using RegisterDefaultBindableProperties method #8

Closed programmation closed 4 years ago

programmation commented 4 years ago

Is it possible to have the default properties dictionary filled in using the RegisterDefaultBindableProperties (or similar) method so all the configuration happens from one place?

VincentH-Net commented 4 years ago

It is possible, however I did not do that to avoid making devs call another init method in their apps, and to avoid a perf hit on app startup (small but still...).

In the version integrated in Xamarin Forms this is separate anyway, and it includes all built-in types where a default makes sense.