Windows Phone 7 Tips (5)

Source: Internet
Author: User

1. Behavior in Windows Phone 7 (behavior, triggers, actions collectively referred to as behavior)

Base class Usage
Behavior < T > This is the simplest form ' behavior in ' it only exposes onattached and Ondetaching methods ' you can override. You ' d typically use this to wire up event handlers to the Associatedobject (the XAML element This behavior is attache D to).
TriggerAction < T > One of the most common forms of behavior is the invocation of a action in response to an event. For example, your might want to navigate to a page of the user clicks a button. A TriggerAction allows the designer to specify which event on the associated control the behavior should. It then calls the Overrideable Invoke method whenever the event triggers.
Targettedtriggeraction < T > The last form of behavior is a extension of the triggeraction that allows the designer to specify the target element. Within the "Invoke method" can reference the Target element, which may isn't be the same element this behavior is Atta Ched to.

2. Enumeration values for orientation in Windows Phone 7

Can see the horizontal, vertical and so on, you will be very strange, how the number is so irregular, we look at these numbers corresponding to the binary value

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.