Upload
akansha-jain
View
214
Download
0
Embed Size (px)
Citation preview
7/28/2019 Pranay Project Work
1/8
7/28/2019 Pranay Project Work
2/8
7/28/2019 Pranay Project Work
3/8
7/28/2019 Pranay Project Work
4/8
7/28/2019 Pranay Project Work
5/8
Microsoft Expression Blend is designed to develop richWindows-based applications and user interfaces (UIs) thatcan interact with user input. For example, if you want your
application to start an animation timeline that moves a ballwhen a user moves the mouse, Expression Blend has
features that you can use to configure that relationship.You can also configure your application to respond to
changes in the application state itself.
7/28/2019 Pranay Project Work
6/8
You can use event handlers to make your application respond touser input and application changes. Event handlers are set up in
the Events panel. (In the Properties panel, click Events .)
You can use event handlers to run a procedure that involves morethan setting a property or controlling an animation timeline. Forexample, you can add other programming logic such as setting a
property on another object, loading or creating a new document,using a mathematical calculation to animate an object, and
more. Event handler methods are defined in the code-behind fileof your document, and written in C# or Visual Basic .NET. For
example, if your document is named Window1.xaml, the eventhandlers are contained in the Window1.xaml.cs or
Window1.xaml.vb file, depending on the programming languagethat you use.
7/28/2019 Pranay Project Work
7/8
Expression Blend helps you write event handler methods by
generating the code for empty methods. If you haveMicrosoft Visual Studio 2008 Standard Edition or a morerecent version installed, Expression Blend will open yourproject in Visual Studio, open the code-behind file, andthen paste in the empty event handler method. If you donot have Visual Studio 2008 Standard Edition or a morerecent version installed, Expression Blend copies the emptyevent handler method to the Clipboard so that you canmanually open the code-behind file and paste the methodin. For more information, see Create a new event handlermethod in this User Guide.
http://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspxhttp://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspxhttp://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspxhttp://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspxhttp://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspxhttp://msdn.microsoft.com/en-us/library/cc294821(v=expression.40).aspx7/28/2019 Pranay Project Work
8/8
Experience with programming Windows-based applications is usefulwhen you are writing event handlers. This is because of the Windows
Presentation Foundation (WPF) threading model and the timing of UIrendering. For example, if you create an event handler method that
updates the text that is displayed in a Label, performs some other
calculations, and then updates the text in the same Label again beforethe event handler method finishes, you will see just the last update.This is because the rendering of the UI occurs at the end of the event
handler method. All processing is accomplished on the same thread, sothe application cannot take time out during the execution of your
method to update the UI. For information about how to write WPFapplications that have multiple UI updates and calculations, see
the Threading Model topic in the WPF section ofMSDN
http://go.microsoft.com/fwlink/?LinkId=102869http://go.microsoft.com/fwlink/?LinkID=74081http://go.microsoft.com/fwlink/?LinkId=102869http://go.microsoft.com/fwlink/?LinkID=74081http://go.microsoft.com/fwlink/?LinkID=74081http://go.microsoft.com/fwlink/?LinkID=74081http://go.microsoft.com/fwlink/?LinkID=74081http://go.microsoft.com/fwlink/?LinkId=102869http://go.microsoft.com/fwlink/?LinkId=102869http://go.microsoft.com/fwlink/?LinkId=102869