Fork me on GitHub
The journal that this archive was targeting has been deleted. Please update your configuration.
Main | Behavior Reference »

Transition Event

A Transition Event is an application Event fired by the Controller after a Behavior Event referencing a Bound Behavior is fired. A Behavior Event by itself just wraps a Behavior Reference and contains an instance of a View Model. If the Behavior is bound to a View, then the Controller has to transition the current View to the bound View, therefore wraps the Behavior Event causing a transition between two Views into a Transition Event object containing the Behavior Event, the View Model and two View References (VR), one referencing the View sending the Behavior Event and the other referencing the receiving View.
//part of JUIPP core
public class TransitionEvent<T> where T : IViewModel, new() 
    public BehaviorEvent<T> BehaviorEvent { get; private set; }

    public TransitionEvent(BehaviorEvent<T> behaviorEvent)
        this.BehaviorEvent = behaviorEvent;

    public T ViewModel
            return this.BehaviorEvent.ViewModel;
            this.BehaviorEvent.ViewModel = value;
    public string ViewReference { get; set; }
    public string PreviousViewReference { get; set; }

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>