﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>nprop</Title>
      <Author>Pierre BELIN</Author>
      <Description>Property with backing field and calling NotifyPropertyChanged on change</Description>
      <HelpUrl></HelpUrl>
      <SnippetTypes />
      <Keywords />
      <Shortcut>nprop</Shortcut>
    </Header>
    <Snippet>
      <References />
      <Imports />
      <Declarations>
        <Literal Editable="true">
          <ID>type</ID>
          <Type></Type>
          <ToolTip>Property Type</ToolTip>
          <Default>string</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>property</ID>
          <Type></Type>
          <ToolTip>Property Name</ToolTip>
          <Default>MyProperty</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>visibility</ID>
          <Type />
          <ToolTip>Setter visibility</ToolTip>
          <Default>protected</Default>
          <Function />
        </Literal>
      </Declarations>
      <Code Language="csharp" Kind="method decl" Delimiter="$"><![CDATA[public $type$ $property$
{
	get 
	{ 
		return _$property$;
	}
	$visibility$ set 
	{ 
		_$property$ = value;
		NotifyPropertyChanged("$property$");
	}
}
private $type$ _$property$;
$end$]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>