-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpropdp.snippet
More file actions
55 lines (54 loc) · 1.89 KB
/
propdp.snippet
File metadata and controls
55 lines (54 loc) · 1.89 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
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2010/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>依存関係プロパティ</Title>
<Description>依存関係プロパティを作成します。</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Shortcut>propdp</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<ToolTip>プロパティの型</ToolTip>
<Default>int</Default>
</Literal>
<Literal>
<ID>property</ID>
<ToolTip>プロパティ名</ToolTip>
<Default>MyProperty</Default>
</Literal>
<Literal>
<ID>ownerClass</ID>
<ToolTip>このプロパティを所有するクラス</ToolTip>
<Function>ClassName()</Function>
</Literal>
<Literal>
<ID>propertyComment</ID>
<ToolTip>プロパティのコメント</ToolTip>
<Default>プロパティ</Default>
</Literal>
</Declarations>
<Code Language="csharp" Kind="method decl">
<![CDATA[/// <summary>
/// <see cref="$property$"/>依存関係プロパティを識別します。
/// </summary>
public static readonly DependencyProperty $property$Property = DependencyProperty.Register(
"$property$",
typeof($type$),
typeof($ownerClass$));
/// <summary>
/// $propertyComment$を取得または設定します。
/// </summary>
public $type$ $property$
{
get { return ($type$)GetValue($property$Property); }
set { SetValue($property$Property, value); }
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>