private void TextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { ImagesPaneViewModel vm = this.DataContext as ImagesPaneViewModel; vm.InvokeSearchCommand(); } }
protected override void OnClick() { ImagesPaneViewModel.Create(); }