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