-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMarkupExtension.snippet
66 lines (66 loc) · 2.18 KB
/
MarkupExtension.snippet
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>MArkup Extension</Title>
<Author>Alan Audivert</Author>
<Description>Creates a Markup extension class</Description>
<Shortcut>markupext</Shortcut>
</Header>
<Snippet>
<Code Language="CSharp" Kind="file">
<![CDATA[/// <summary>
/// $ClassSummary$
/// </summary>
[MarkupExtensionReturnType(typeof($MarkupExtensionReturnType$))]
public class $ClassName$ : MarkupExtension
{
/// <summary>
/// $ProvideValueSummary$
/// </summary>
/// <param name="serviceProvider"><see cref="IServiceProvider"/> gathering all available services</param>
/// <returns>$ProvideValueReturn$</returns>
public override object ProvideValue(IServiceProvider serviceProvider)
{
throw new NotImplementedException();$end$
}
}]]>
</Code>
<Declarations>
<Literal>
<ID>ClassSummary</ID>
<ToolTip>Description of the class</ToolTip>
<Default>!!! Description of the class here !!!</Default>
</Literal>
<Literal>
<ID>MarkupExtensionReturnType</ID>
<ToolTip>Markup extension's return type</ToolTip>
<Default>object</Default>
</Literal>
<Literal>
<ID>ClassName</ID>
<ToolTip>The name of the markup extension</ToolTip>
<Default>MyMarkupExtension</Default>
</Literal>
<Literal>
<ID>ProvideValueReturn</ID>
<ToolTip>Markup extension's return value description</ToolTip>
<Default>!!! Description of the return value !!!</Default>
</Literal>
<Literal>
<ID>ProvideValueSummary</ID>
<ToolTip>Description of the ProvideValue method</ToolTip>
<Default>!!! Description of the ProvideValue method !!!</Default>
</Literal>
</Declarations>
<Imports>
<Import>
<Namespace>System</Namespace>
</Import>
<Import>
<Namespace>System.Windows.Markup</Namespace>
</Import>
</Imports>
</Snippet>
</CodeSnippet>
</CodeSnippets>