To create an event handler with the default name, you just double-click the event name in the Properties window. The event handler is created and the code-behind file is opened in the code editor.
在属性窗体的事件名称里双击事件名称就可以创建一个事件处理代码,这时代码后置文件会在代码编辑器中打开。
The code-behind file is opened and the cursor is positioned in the selected event handler.
随即将打开代码隐藏文件,并将光标定位在选定的事件处理程序中。
You can define a control in the code-behind file as long as you make it protected or public.
可以在代码隐藏文件中定义控件,但要使其成为受保护或公共控件。
Then specify the value of that attribute as the name of the event handler method that you defined in the code-behind file of the XAML page.
接著将该属性的值指定为您在XAML 页面的程式码后置档案中所定义的事件处理常式方法的名称。
This partial class enables your code-behind file to be used as part of a complete class without requiring you to declare the controls explicitly.
使用此分部类,您可以将代码隐藏文件用作完整类的一部分,而无需显式声明控件。
Although the ASPX page inherited from the code-behind file in a programming sense, the two files were actually coupled by a more complex relationship.
即使从编程的角度看,ASPX页是从后台代码文件继承而来的,两者之间实际上还有更复杂的关系。
Although the ASPX page inherited from the code-behind file in a programming sense, the two files were actually coupled by a more complex relationship.
即使从编程的角度看,ASPX页是从后台代码文件继承而来的,两者之间实际上还有更复杂的关系。
应用推荐