Last active
January 17, 2016 05:03
-
-
Save dbuksbaum/552626 to your computer and use it in GitHub Desktop.
ReSharper File Template to create Caliburn.Micro View-Models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TemplatesExport family="File Templates"> | |
<Template uid="3d240306-9708-46d9-955c-4f06c2f803a7" | |
shortcut="" | |
description="Caliburn Micro View Model" | |
text="using System;
using Caliburn.Micro;
using $ROOTNAMESPACE$.Messages;

namespace $NAMESPACE$
{
 public class $CLASS$ : $BASECLASS$
 {
 #region Fields
 private readonly IEventAggregator _messageBus;
 #endregion
 
 #region Constructors
 public $CLASS$(IEventAggregator messageBus)
 {
 _messageBus = messageBus;
 // Uncomment this if you want to handle any messages
 //_messageBus.Subscribe(this);
 }
 #endregion
 $END$
 }
}" | |
reformat="True" | |
shortenQualifiedReferences="True"> | |
<Context> | |
<ProjectLanguageContext language="CSharp" /> | |
</Context> | |
<Categories /> | |
<Variables> | |
<Variable name="NAMESPACE" expression="fileDefaultNamespace()" initialRange="-1" /> | |
<Variable name="ROOTNAMESPACE" expression="getDefaultNamespace()" initialRange="-1" /> | |
<Variable name="CLASS" expression="getFileNameWithoutExtension()" initialRange="-1" /> | |
<Variable name="BASECLASS" expression="list("PropertyChangedBase, Screen, Conductor<T>, Conductor<T>.Collection.OneActive")" initialRange="0" /> | |
</Variables> | |
<CustomProperties> | |
<Property key="FileName" value="Class" /> | |
<Property key="Extension" value="cs" /> | |
<Property key="ValidateFileName" value="True" /> | |
</CustomProperties> | |
</Template> | |
</TemplatesExport> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment