-
Notifications
You must be signed in to change notification settings - Fork 2
/
combine.template.xml
41 lines (41 loc) · 1.25 KB
/
combine.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
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<CodeTemplates version="3.0">
<CodeTemplate version="2.0">
<Header>
<_Group>C#</_Group>
<Version />
<MimeType>text/x-csharp</MimeType>
<Shortcut>combine</Shortcut>
<_Description>combine latest</_Description>
<TemplateType>Unknown</TemplateType>
</Header>
<Variables>
<Variable name="Property">
<Default>Property</Default>
</Variable>
<Variable name="Observable">
<Default>Observable</Default>
</Variable>
<Variable name="Local1">
<Default>Local1</Default>
</Variable>
<Variable name="Local2">
<Default>Local2</Default>
</Variable>
<Variable name="Bindings">
<Default>ControlBindings</Default>
</Variable>
</Variables>
<Code><![CDATA[Observable
.CombineLatest(
this.WhenAnyValue(x => x.$Property$),
this.WhenAnyObservable(x => x.$Observable$),
($Local1$, $Local2$) => new { $Local1$, $Local2$ })
.Subscribe(
x =>
{
$end$
})
.DisposeWith($Bindings$);]]></Code>
</CodeTemplate>
</CodeTemplates>