BP109: Define your view model in design time data to get IntelliSense

If you assign your view model to the page binding context in constructor, there won't be IntelliSense in XAML. To overcome this, define the view model in design time data page binding context.

<d:ContentPage.BindingContext>
    <viewmodels:YourPageViewModel/>
</d:ContentPage.BindingContext>

Comments

No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play