/// <summary> /// Constructor for the custom code generator /// </summary> /// <param name="context">Context of the current code generation operation based on how scaffolder was invoked(such as selected project/folder) </param> /// <param name="information">Code generation information that is defined in the factory class.</param> public ElementGenerator( CodeGenerationContext context, CodeGeneratorInformation information) : base(context, information) { _viewModel = new ElementViewModel(); }
public ElementWindow(ElementViewModel viewModel) { InitializeComponent(); DataContext = viewModel; }