示例#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;
 }