-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbppu.template.xml
35 lines (35 loc) · 1.18 KB
/
bppu.template.xml
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
<?xml version="1.0" encoding="utf-8"?>
<CodeTemplates version="3.0">
<CodeTemplate version="2.0">
<Header>
<_Group>Custom</_Group>
<Version />
<MimeType>text/x-csharp</MimeType>
<Shortcut>bppu</Shortcut>
<_Description>Upside-Down Bindable Property</_Description>
<TemplateType>Expansion</TemplateType>
</Header>
<Variables>
<Variable name="PropertyName">
<Default>PropertyName</Default>
</Variable>
<Variable name="PropertyDataType">
<Default>string</Default>
</Variable>
<Variable name="ClassName">
<Default>ClassName</Default>
</Variable>
<Variable name="DefaultPropertyValue">
<Default>string.Empty</Default>
</Variable>
</Variables>
<Code><![CDATA[public $PropertyDataType$ $PropertyName$
{
get { return ($PropertyDataType$)GetValue($PropertyName$Property); }
set { SetValue($PropertyName$Property, value); }
}
public static readonly BindableProperty $PropertyName$Property =
BindableProperty.Create(nameof($PropertyName$), typeof($PropertyDataType$), typeof($ClassName$), $DefaultPropertyValue$);
$end$]]></Code>
</CodeTemplate>
</CodeTemplates>