1

When I double click on my User Control file, system auto generates a UserControl_Loaded function in .cs file and adds loaded tag in XAML as Loaded="UserControl_Loaded" for UserControl element. It also defines an eventHandler to this.Any shortcut in VS to undo this operation quickly?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
angad.stjudes
  • 186
  • 1
  • 6
  • Very wierd, I tried and double clicked everywhere but I didn't get Loaded event implemented. Could you show me where exactly did you double click? – HichemSeeSharp Jan 29 '13 at 14:20

1 Answers1

0

You can just Undo once in the .xaml.cs and then flip back to the .xaml and Undo once there and you'll be back to the initial state. Quick keyboard sequence is Ctrl-Z, Ctrl-Tab, Ctrl-Z.

John Bowen
  • 24,213
  • 4
  • 58
  • 56
  • Yes John,this is a very simple solution for this operation.could you please help me out with: http://stackoverflow.com/questions/14706179/wpf-user-control-in-winforms-project-structuring (Thanks in advance :)) – angad.stjudes Feb 05 '13 at 11:25