Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RicardoBritoBrens/360a49a7538b3eb6c7eb828168ad0c76 to your computer and use it in GitHub Desktop.
Save RicardoBritoBrens/360a49a7538b3eb6c7eb828168ad0c76 to your computer and use it in GitHub Desktop.
Tips and Tricks for Xamarin Forms to keep near

Tips and Tricks for Xamarin Forms to keep near

Disable default text All Caps on Android projects

This line turn off the default options into Xamarin form to make all button text Upper Case.

<item name="android:textAllCaps">false</item>

Enable collectionvView feature

This line of code enable CollectionView usage into Xamarin Forms application since the feature it is not 100% released.

Forms.SetFlags("CollectionView_Experimental");

Use the Design Time Data namespace to Enable IntelliSense on Xaml Using MVVM Pattern

First of all you need to bring the design namespace on your xaml.

  xmlns:d="http://xamarin.com/schemas/2014/forms/design"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"

Then your can set the proper ViewModel for you page

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

Now enjoy the Intellisense!

@RicardoBritoBrens
Copy link
Author

I Just try to use using Visual Studio for Mac Community version 8.7.8 (build 4) and i am having the same behavior, we should report this to the xamarin form repository as an issue.

@Mrsevic
Copy link

Mrsevic commented Oct 31, 2020

I am about to report it asap. Thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment