Skip to content

Instantly share code, notes, and snippets.

View moraismateus's full-sized avatar

Mateus Morais moraismateus

View GitHub Profile
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace YourNamespace.Namespace
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Notifiable Property</Title>
<Description>C# property that implements SetField(), it needs a similar code I have in my Base ViewModel @ https://gist.github.com/moraismateus/d4f955ea601d4214052358fbfe4763d3</Description>
<Author>Mateus Morais</Author>
<Shortcut>nprop</Shortcut>
</Header>
<Snippet>
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>ICommand Implementation</Title>
<Description>Xamarin Forms Relay Command</Description>
<Author>Mateus Morais</Author>
<Shortcut>icomm</Shortcut>
</Header>
<Snippet>
@moraismateus
moraismateus / bprop.snippet
Last active May 13, 2022 16:43 — forked from Juansero29/bprop.snippet
Modern Bindable Property Snippet for Xamarin Forms.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Bindable Property</Title>
<Description>Modern Xamarin Forms Bindable Property</Description>
<Author>Mateus Morais(moraismateus), Juan R. (Juansero29) and Parth Patel (parth7676)</Author>