diff --git a/snippets/RxUI.DotSettings b/snippets/RxUI.DotSettings new file mode 100644 index 0000000000..69c9559ad3 --- /dev/null +++ b/snippets/RxUI.DotSettings @@ -0,0 +1,119 @@ + + True + afact + [Fact] +public async Task $TestName$() +{ + $END$ +} + True + True + True + True + InCSharpTypeMember + 2.0 + True + 0 + True + fact + [Fact] +public void $TestName$() +{ + $END$ +} + True + True + True + True + InCSharpTypeMember + 2.0 + True + 0 + True + ivf + namespace $DefaultNamespace$ +{ + using Windows.UI.Xaml; + using ReactiveUI; + + public sealed partial class $ViewName$ : IViewFor<$ViewName$Model> + { + public $ViewName$() + { + this.InitializeComponent(); + } + + public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register( + "ViewModel", + typeof($ViewName$Model), + typeof($ViewName$), + new PropertyMetadata(default($ViewName$Model))); + + public $ViewName$Model ViewModel + { + get { return ($ViewName$Model) GetValue(ViewModelProperty); } + set { SetValue(ViewModelProperty, value); } + } + + object IViewFor.ViewModel + { + get { return ViewModel; } + set { ViewModel = ($ViewName$Model)value; } + } + } +} + + True + True + True + InCSharpTypeAndNamespace + 2.0 + True + getFileNameWithoutExtension() + 0 + True + fileDefaultNamespace() + -1 + 1 + True + oaph + ObservableAsPropertyHelper + readonly ObservableAsPropertyHelper<$Type$> _$fieldName$; +public $Type$ $Name$ => _$fieldName$.Value; + True + True + True + InCSharpTypeMember + 2.0 + True + 1 + 0 + True + 1 + 1 + True + decapitalize(Name) + -1 + 2 + True + raiseif + $PropertyType$ _$fieldName$$END$; +public $PropertyType$ $PropertyName$ +{ + get { return _$fieldName$; } + set { this.RaiseAndSetIfChanged(ref _$fieldName$, value); } +} + True + True + True + InCSharpTypeMember + 2.0 + True + 1 + 0 + True + 1 + True + decapitalize(PropertyName) + -1 + 2 \ No newline at end of file diff --git a/snippets/ruicommand.snippet b/snippets/ruicommand.snippet new file mode 100644 index 0000000000..9737f58ff1 --- /dev/null +++ b/snippets/ruicommand.snippet @@ -0,0 +1,30 @@ + + + +
+ ReactiveUI - Command + ruicommand + Code snippet for a ReactiveUI Command + + Expansion + +
+ + + + type + Command type + object + + + command + Command name + DoSomething + + + + $command$ { get; private set; }$end$]]> + + +
+
\ No newline at end of file diff --git a/snippets/ruiiv4.snippet b/snippets/ruiiv4.snippet new file mode 100644 index 0000000000..0d6f7e642e --- /dev/null +++ b/snippets/ruiiv4.snippet @@ -0,0 +1,39 @@ + + + +
+ ReactiveUI - IViewFor<T> + ruiiv4 + Generates the dependency prop for IViewFor + + Expansion + +
+ + + + classname + View type + ClassName() + ClassNamePlaceholder + + + + + + +
+
\ No newline at end of file diff --git a/snippets/ruiopah.snippet b/snippets/ruiopah.snippet new file mode 100644 index 0000000000..836c3d7608 --- /dev/null +++ b/snippets/ruiopah.snippet @@ -0,0 +1,33 @@ + + + +
+ ReactiveUI - ObservableAsPropertyHelper + ruiopah + Code snippet for a ReactiveUI ObservableAsPropertyHelper + + Expansion + +
+ + + + type + Property type + int + + + property + Property name + MyProperty + + + _$property$; + public $type$ $property$ + { + get {return _$property$.Value;} + }$end$]]> + + +
+
\ No newline at end of file diff --git a/snippets/ruiprop.snippet b/snippets/ruiprop.snippet new file mode 100644 index 0000000000..e4e1ec0acb --- /dev/null +++ b/snippets/ruiprop.snippet @@ -0,0 +1,34 @@ + + + +
+ ReactiveUI - Reactive Property + ruiprop + Code snippet for a Reactive property + + Expansion + +
+ + + + type + Property type + int + + + property + Property name + MyProperty + + + + + +
+
\ No newline at end of file diff --git a/snippets/ruiviewreg.snippet b/snippets/ruiviewreg.snippet new file mode 100644 index 0000000000..56984d3f69 --- /dev/null +++ b/snippets/ruiviewreg.snippet @@ -0,0 +1,25 @@ + + + +
+ ReactiveUI - View Registration + ruiviewreg + Code snippet for a ReactiveUI View Registration + + Expansion + +
+ + + + viewType + View Name + My + + + + new $viewType$View(), typeof(IViewFor<$viewType$ViewModel>));$end$]]> + + +
+
\ No newline at end of file