Created
May 14, 2020 19:19
-
-
Save J-Swift/640359ec796e8c044ea1dbb9bc23aeee to your computer and use it in GitHub Desktop.
Xamarin.Forms BindableProperty Property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<shortcut>bp</shortcut> | |
<Title>Bindable Property</Title> | |
<Author>Jimmy Reichley</Author> | |
<Description>Inserts boilerplate for BindableProperty property</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>PropertyType</ID> | |
<Default>Klass</Default> | |
<ToolTip>Choose the type of the property.</ToolTip> | |
</Literal> | |
<Literal> | |
<ID>PropertyName</ID> | |
<Default>FieldName</Default> | |
<ToolTip>Choose the name of the property.</ToolTip> | |
</Literal> | |
</Declarations> | |
<Code Language="CSharp"> | |
<![CDATA[ | |
public $PropertyType$ $PropertyName$ | |
{ | |
get { return ($PropertyType$)GetValue($PropertyName$Property); } | |
set { SetValue($PropertyName$Property, value); } | |
} | |
]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place at
Documents\Visual Studio 2019\Code Snippets\Visual C#\My Code Snippets\BindableProperty.snippet