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