コード例 #1
0
 /// <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();
 }
コード例 #2
0
        public ElementWindow(ElementViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }
コード例 #3
0
        public ElementWindow(ElementViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }