mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
c418590986
Modified properties to match its formatting
30 lines
945 B
Plaintext
30 lines
945 B
Plaintext
<?xml version="1.0" encoding="utf-8" ?>
|
|
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
|
<CodeSnippet Format="1.0.0">
|
|
<Header>
|
|
<Title>Notify property changed property</Title>
|
|
<Shortcut>guiprop</Shortcut>
|
|
<Description>Code snippet for a NotifyingPropertyChanged variable</Description>
|
|
<SnippetTypes>
|
|
<SnippetType>Expansion</SnippetType>
|
|
</SnippetTypes>
|
|
</Header>
|
|
<Snippet>
|
|
<Declarations>
|
|
<Literal>
|
|
<ID>type</ID>
|
|
<ToolTip>Property type</ToolTip>
|
|
<Default>int</Default>
|
|
</Literal>
|
|
<Literal>
|
|
<ID>property</ID>
|
|
<ToolTip>Property name</ToolTip>
|
|
<Default>MyProperty</Default>
|
|
</Literal>
|
|
</Declarations>
|
|
<Code Language="csharp"><![CDATA[private $type$ _$property$;
|
|
public $type$ $property$ { get => _$property$; set => this.RaiseAndSetIfChanged(ref _$property$, value); }$end$]]>
|
|
</Code>
|
|
</Snippet>
|
|
</CodeSnippet>
|
|
</CodeSnippets> |