문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top