Which will then prompt us for the event handler in our code-behind class to use?
然后就会提示我们在我们的后台代码类中该使用的事件处理函数。
Streamlined View creation and binding, including Views without code-behind files.
更高效的视图创建和绑定,包括没有后置代码(Code - Behind)的视图文件。
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.
可以在代码隐藏文件中定义控件,但要使其成为受保护或公共控件。
In a previous solution, I recall setting up code-behind-type hub connections for unit testing.
在以前的解决方案,我记得设置代码在单元测试类型集线器连接。
The inheritance model for code-behind pages is slightly more complex than that for single-file pages.
程序码后置页面的继承模型会比单一档案页面的继承模型还稍微复杂一些。
Phew . That's it. That is the control. You could go crazy on this code-behind and do all types of fancy things.
这是控制。你可以继续在这个疯狂的代码隐藏和做各种花式的事情。
This topic describes requirements for code-behind as well as an alternative inline code mechanism for code in XAML.
本主题描述代码隐藏的要求以及在XAML中的代码的可选内联代码机制。
You can also associate an event with its event handler in the code-behind. The following code shows how to do this in C#.
同样也可以在代码后置文件中来关联事件处理方法。
So if you have animation code or stuff that purely is visual enhancements then use code-behind, else stay off it cos it just hurts you.
所以如果你有动画代码或东西纯粹是视觉增强然后使用后台代码,远离它因为它只伤害了你。
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页是从后台代码文件继承而来的,两者之间实际上还有更复杂的关系。
Note that under the default behavior of the markup compile build actions, you can leave the derivation blank in the partial class definition on the code-behind side.
请注意,在标记编译生成操作的默认行为下,您可以在代码隐藏端的分部类定义中将派生保留为空。
In a rough analogy, this is a slightly similar model to ASP.NET or WPF, where you define your user interface in HTML or XAML, and have a code-behind page that handles events.
做一个粗略的比喻的话,这就是和asp.net或WPF有点类似的模型,在这些模型中,你通过HTML或XAML来定义用户界面,在后置代码中处理事件。
This data object can be obtained by referencing your own code-behind object, by getting the data context, by getting a property of the data source, or by getting a property of the binding.
通过以下方法可以获取此数据对象:引用您自己的代码隐藏对象、获取数据上下文、获取数据源的属性或者获取绑定的属性。
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就会自动地在我们的后台代码类文件中创建一个占位的事件处理函数实现。
The idea behind C++ was that programmers would work harder in return for more efficient code.
C++的理念是程序员需要更努力的工作才能换回更高效的代码。
In addition, JSP technology already has a powerful mechanism for putting executable code behind custom tags, so you don't have to implement a parser for the templates based on the JSP syntax.
此外,JSP技术已经有了一种很强大的机制来将可执行代码放在定制标记后面,所以,不必为基于jsp语法的模板实现解析器。
Listing 1 shows the XUL code behind this system.
清单1显示了这个系统背后的XUL代码。
As you can see, by using the "code behind" approach, your code is very concise and maintainable.
如你所见,使用“代码分离”方法,你的代码会非常简明而易于维护。
In virtually all cases you shouldn't need to do anything in the code behind because the ViewModel takes care of providing the commands and linking between the view and the controller.
在绝大多数情况下你不需要在后台代码中做任何事情,因为视图模型负责提供命令并连接视图和控制器。
These classes will become the code behind the user controls that you will create later.
这些类将成为以后创建的用户控件的代码。
I will use another widget to address the final 3 things in this article, and I want to show it off and explain it before I delve into the code behind it.
我将使用另一个小部件解决本文的最后3个问题,并且在深入研究其代码之前展示和解释它。
The code behind the Web Part can use all.net features, so you can interact with Lotus Domino using any means necessary — ADO.NET, Web services, and so forth.
隐藏在WebPart背后的代码可以使用所有. NET功能,因此可以使用任何必要的方法(ado.net、Web服务等)与LotusDomino进行交互。
Test coverage tools modify your code to leave behind a trail of "bread crumbs" during execution (hence the names of the tools I'm targeting in this column).
测试覆盖工具旨在修改代码,使之在执行期间留下一条“面包屑”踪迹(这也是我在这一期关注的工具的名称由来)。
The code behind the launching of the user’s journal is the Applications.launch method that you have already seen.
实现启动用户日志的代码是 Applications.lauch 方法。
Bookmark some for later and more in-depth study and explore every aspect of the design and the code behind the site.
给一些标注上书签以备后用,然后深入研究和探索设计的各个方面和网站背后的代码。
Bookmark some for later and more in-depth study and explore every aspect of the design and the code behind the site.
给一些标注上书签以备后用,然后深入研究和探索设计的各个方面和网站背后的代码。
应用推荐