Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            _commandSampleViewModel = new CommandSampleViewModel();

            this.DataContext = _commandSampleViewModel;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.vm = ((CommandSample.CommandSampleViewModel)(target));
         return;
     }
     this._contentLoaded = true;
 }