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页是从后台代码文件继承而来的,两者之间实际上还有更复杂的关系。
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.
在属性窗体的事件名称里双击事件名称就可以创建一个事件处理代码,这时代码后置文件会在代码编辑器中打开。
VS will then automatically create a stub event handler implementation in our code-behind class file. We can use this event handler to update the Button's content with a new message when it is clicked.
然后VS就会自动地在我们的后台代码类文件中创建一个占位的事件处理函数实现。
To work around this issue, navigate manually to the code file behind the namespace, or omit the node for the namespace from your selection.
若要解决此问题,请手动导航到命名空间后面的代码文件,或在您的选择中忽略命名空间的节点。
Any way to stop processing an ASCX file in code behind?
以任何方式停止处理后的代码ascx文件?
How to read XML sent using XMLHTTP in code behind file?
如何读取XML使用XMLHTTP在代码隐藏文件发送?
The inheritance model for code-behind pages is slightly more complex than that for single-file pages.
程序码后置页面的继承模型会比单一档案页面的继承模型还稍微复杂一些。
Creates a method in the code behind for a user's XAML file and enables appending statements to the method.
在程序码后置中为使用者的xaml档建立方法,并且让方法可以附加陈述式。
Creates a method in the code behind for a user's XAML file and enables appending statements to the method.
在程序码后置中为使用者的xaml档建立方法,并且让方法可以附加陈述式。
应用推荐