예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            _commandSampleViewModel = new CommandSampleViewModel();

            this.DataContext = _commandSampleViewModel;
        }
예제 #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;
 }