做一个粗略的比喻的话,这就是和asp.net或WPF有点类似的模型,在这些模型中,你通过HTML或XAML来定义用户界面,在后置代码中处理事件。
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.
在属性窗体的事件名称里双击事件名称就可以创建一个事件处理代码,这时代码后置文件会在代码编辑器中打开。
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.
同样也可以在代码后置文件中来关联事件处理方法。
You can also associate an event with its event handler in the code-behind. The following code shows how to do this in C#.
Jacobson的方法涉及一系列进入和退出的准则,分别被称作前置条件和后置条件,和一个称为事件流的核心准则。
Jacobson's method involves a set of entry and exit criteria called pre-conditions and post-conditions respectively, and a core criteria called the flow of events.
接著将该属性的值指定为您在 XAML页面的程式码后置档案中所定义的事件处理常式方法的名称。
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页面的程式码后置档案中所定义的事件处理常式方法的名称。
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.
应用推荐