-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXamarin.Android.ControlDeclaration.snippet
More file actions
43 lines (41 loc) · 1.21 KB
/
Xamarin.Android.ControlDeclaration.snippet
File metadata and controls
43 lines (41 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Xamarin.Android Control Declaration generator</Title>
<Shortcut>xac</Shortcut>
<Description>
Xamarin.Android Control Declaration
</Description>
<Author>Gilbok Lee</Author>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>ControlType</ID>
<ToolTip>Type of Control</ToolTip>
<Default>Button</Default>
<Function>
</Function>
</Literal>
<Literal Editable="true">
<ID>ControlName</ID>
<ToolTip>Name of Control</ToolTip>
<Default>MyButton</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[
$ControlType$ $ControlName$;
$end$// Move code below into OnCreate
$ControlName$ = FindViewById<$ControlType$>(Resource.Id.$ControlName$);
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>