public MainWindow() { InitializeComponent(); _commandSampleViewModel = new CommandSampleViewModel(); this.DataContext = _commandSampleViewModel; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.vm = ((CommandSample.CommandSampleViewModel)(target)); return; } this._contentLoaded = true; }