Created
September 25, 2019 13:39
-
-
Save Juansero29/4fc5dec302011930a93c808f7a0b76ef to your computer and use it in GitHub Desktop.
Code snippet for an automatically implemented region in XAML. It's targeted to use within Xamarin.Forms. Type 'regx' to access it easily on a XAML Code Editor window. Language Version: C# 4.0 or higher
This file contains hidden or 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> | |
<Title>XAML Regions</Title> | |
<Author>Juan R. (Juansero29)</Author> | |
<Shortcut>regx</Shortcut> | |
<Description> | |
Code snippet for an automatically implemented region in XAML. | |
It's targeted to use within Xamarin.Forms. | |
Type 'regx' to access it easily on a XAML Code Editor window. | |
Language Version: C# 4.0 or higher | |
</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>RegionName</ID> | |
<ToolTip>Enter the name for this region</ToolTip> | |
<Default>MyRegion</Default> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>Xaml</ID> | |
<ToolTip>The XAML that will be inside your region</ToolTip> | |
<Default>MyXAML</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="xaml"> | |
<![CDATA[ | |
<!--#region $RegionName$--> | |
< $Xaml$ /> | |
<!--#endregion--> | |
$end$]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment