/xamarin-forms-snippets

My Code Snippets for Xamarin.Forms

Primary LanguageVim Snippet

My Code Snippets for Xamarin.Forms

XAML
  • iOS Platform Specific Namespace
  • Android Platform Specific Namespace
  • Bindable Layout
  • Label with Multiple Bindings
  • Gesture Recognizers
C#
  • Bindable Property
  • Custom Renderer Assembly Attribute
  • Dependency Service Assembly Attribute
  • PropertyChanged

How to install snippets to Visual Studio

  • Open it by choosing Tools > Code Snippets Manager.
  • Click the Import button.
  • Go to the location where you saved the code snippet, select it, and click Open.
  • The Import Code Snippet dialog opens, asking you to choose where to add the snippet from the choices in the right pane. One of the choices should be My Code Snippets. Select it and click Finish, then OK.

Test your snippet by opening a project. With a code file open in the editor, choose Snippets > Insert Snippet from the right-click menu, then My Code Snippets. You should see a snippet named Square Root. Double-click it. The snippet code is inserted in the code file.