diff --git a/snippets/Visual Studio/ruicommand.snippet b/snippets/Visual Studio/ruicommand.snippet
index 9737f58ff1..9a36187534 100644
--- a/snippets/Visual Studio/ruicommand.snippet
+++ b/snippets/Visual Studio/ruicommand.snippet
@@ -12,9 +12,14 @@
- type
- Command type
- object
+ TParam
+ Type of parameter
+ Unit
+
+
+ TResult
+ Type of result
+ Unit
command
@@ -22,8 +27,16 @@
DoSomething
+
+
+ System.Reactive
+
+
+ ReactiveUI
+
+
- $command$ { get; private set; }$end$]]>
+ $command$ { get; }$end$]]>
diff --git a/snippets/Visual Studio/ruiinteraction.snippet b/snippets/Visual Studio/ruiinteraction.snippet
index ccbc6afbd4..d4ac6721df 100644
--- a/snippets/Visual Studio/ruiinteraction.snippet
+++ b/snippets/Visual Studio/ruiinteraction.snippet
@@ -21,6 +21,11 @@
Unit
Interaction's output type
+
+ interaction
+ Interaction name
+ DoSomethingInteraction
+
@@ -31,7 +36,7 @@
- DoSomethingInteraction => new Interaction<$TInput$, $TOutput$>();$end$]]>
+ $interaction$ { get; } = new Interaction<$TInput$, $TOutput$>();$end$]]>
diff --git a/snippets/Visual Studio/ruiiv4.snippet b/snippets/Visual Studio/ruiiv4.snippet
index ed2351fd6e..9eab26af6b 100644
--- a/snippets/Visual Studio/ruiiv4.snippet
+++ b/snippets/Visual Studio/ruiiv4.snippet
@@ -20,18 +20,18 @@
($classname$Model)GetValue(ViewModelProperty);
+ set => SetValue(ViewModelProperty, value);
}
object IViewFor.ViewModel
{
- get { return ViewModel; }
- set { ViewModel = ($classname$Model)value; }
+ get => ViewModel;
+ set => ViewModel = ($classname$Model)value;
}$end$]]>
diff --git a/snippets/Visual Studio/ruioaph.snippet b/snippets/Visual Studio/ruioaph.snippet
index 1cd4fe7bd5..b5f3b6e6f9 100644
--- a/snippets/Visual Studio/ruioaph.snippet
+++ b/snippets/Visual Studio/ruioaph.snippet
@@ -17,16 +17,24 @@
int
- property
- Property name
- MyProperty
+ fieldName
+ Name of backing field
+ myField
+
+
+ propertyName
+ Name of property
+ MyProperty
- _$property$;
- public $type$ $property$
- {
- get {return _$property$.Value;}
- }$end$]]>
+
+
+ ReactiveUI
+
+
+
+ $fieldName$;
+ public $type$ $propertyName$ => $fieldName$.Value;$end$]]>
diff --git a/snippets/Visual Studio/ruiprop.snippet b/snippets/Visual Studio/ruiprop.snippet
index 0b24fddbb5..eaec8ad517 100644
--- a/snippets/Visual Studio/ruiprop.snippet
+++ b/snippets/Visual Studio/ruiprop.snippet
@@ -24,11 +24,17 @@
propertyName
Name of property
- myProperty
+ MyProperty
- $fieldName$; set => this.RaiseAndSetIfChanged(ref $fieldName$, value); }$end$]]>
-
+
+ $fieldName$;
+ set => this.RaiseAndSetIfChanged(ref $fieldName$, value);
+ }$end$]]>
+
\ No newline at end of file