Created
December 27, 2016 11:56
-
-
Save flexdevguy/e235cd25419d53ae5fb9fde46c550a2a to your computer and use it in GitHub Desktop.
Visual Studio 2013 code snippets for Xamarin
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"> | |
| <!-- Label --> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| <SnippetType>SurroundsWith</SnippetType> | |
| </SnippetTypes> | |
| <Title>Label</Title> | |
| <Author>Gowtham</Author> | |
| <Description>XAML snippet for Label</Description> | |
| <HelpUrl> | |
| </HelpUrl> | |
| <Shortcut>label</Shortcut> | |
| </Header> | |
| <Snippet> | |
| <Declarations> | |
| <Literal Editable="true"> | |
| <ID>Name</ID> | |
| <ToolTip>Name</ToolTip> | |
| <Default>lblUniqueName</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| <Literal Editable="true"> | |
| <ID>FontSize</ID> | |
| <ToolTip>FontSize for text Named Sizes such as Small, Medium, Large</ToolTip> | |
| <Default>Medium</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| </Declarations> | |
| <Code Language="XAML"><![CDATA[ | |
| <Label x:Name="$Name$" Text="$selected$$end$" FontSize="$FontSize$"/> | |
| ]]> | |
| </Code> | |
| </Snippet> | |
| </CodeSnippet> | |
| <!-- Grid --> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| <SnippetType>SurroundsWith</SnippetType> | |
| </SnippetTypes> | |
| <Title>Grid</Title> | |
| <Author>Gowtham</Author> | |
| <Description>XAML snippet for Grid</Description> | |
| <HelpUrl> | |
| </HelpUrl> | |
| <Shortcut>grid</Shortcut> | |
| </Header> | |
| <Snippet> | |
| <Declarations> | |
| <Literal Editable="true"> | |
| <ID>Name</ID> | |
| <ToolTip>Name</ToolTip> | |
| <Default>UniqueName</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| </Declarations> | |
| <Code Language="XAML"><![CDATA[ | |
| <Grid x:Name="$Name$"> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto"/> | |
| </Grid.RowDefinitions> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="Auto" /> | |
| </Grid.ColumnDefinitions> | |
| <Label Grid.Row="0" Grid.Column="0" Text="Sample Text"/> | |
| $selected$$end$ | |
| </Grid> | |
| ]]> | |
| </Code> | |
| </Snippet> | |
| </CodeSnippet> | |
| <!-- StackLayout --> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| <SnippetType>SurroundsWith</SnippetType> | |
| </SnippetTypes> | |
| <Title>StackLayout</Title> | |
| <Author>Gowtham</Author> | |
| <Description>XAML snippet for StackLayout</Description> | |
| <HelpUrl> | |
| </HelpUrl> | |
| <Shortcut>stack</Shortcut> | |
| </Header> | |
| <Snippet> | |
| <Declarations> | |
| <Literal Editable="true"> | |
| <ID>Name</ID> | |
| <ToolTip>Name</ToolTip> | |
| <Default>UniqueName</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| <Literal Editable="true"> | |
| <ID>StackOrientation</ID> | |
| <ToolTip>StackOrientation either Vertical or Horizontal</ToolTip> | |
| <Default>Vertical</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| <Literal Editable="true"> | |
| <ID>LayoutOptions</ID> | |
| <ToolTip>LayoutOptions such as Start, End, Center, Fill with Expand options like FillAndExpand</ToolTip> | |
| <Default>FillAndExpand</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| </Declarations> | |
| <Code Language="XAML"> | |
| <![CDATA[ | |
| <StackLayout x:Name="$Name$" Orientation="$StackOrientation$" HorizontalOptions="$LayoutOptions$" VerticalOptions="$LayoutOptions$"> | |
| $selected$$end$ | |
| </StackLayout> | |
| ]]> | |
| </Code> | |
| </Snippet> | |
| </CodeSnippet> | |
| <!-- List --> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| <SnippetType>SurroundsWith</SnippetType> | |
| </SnippetTypes> | |
| <Title>ListView</Title> | |
| <Author>Gowtham</Author> | |
| <Description>XAML snippet for ListView</Description> | |
| <HelpUrl> | |
| </HelpUrl> | |
| <Shortcut>list</Shortcut> | |
| </Header> | |
| <Snippet> | |
| <Declarations> | |
| <Literal Editable="true"> | |
| <ID>Name</ID> | |
| <ToolTip>Name</ToolTip> | |
| <Default>UniqueName</Default> | |
| <Function> | |
| </Function> | |
| </Literal> | |
| </Declarations> | |
| <Code Language="XAML"> | |
| <![CDATA[ | |
| <ListView x:Name="$Name$"> | |
| <ListView.ItemTemplate> | |
| <DataTemplate> | |
| <ViewCell> | |
| $selected$$end$ | |
| </ViewCell> | |
| </DataTemplate> | |
| </ListView.ItemTemplate> | |
| </ListView> | |
| ]]> | |
| </Code> | |
| </Snippet> | |
| </CodeSnippet> | |
| </CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment