// fires after the GUI component is instantiated void ComponentInstantiated(Component component) { //Slider slider = (Slider) component; // you can do a cast here component.AddEventListener(Trigger, delegate(Event e) { CollapseAlphaLeftTop tween = new CollapseAlphaLeftTop {Bounds = Bounds}; tween.Play(e.Target); e.CancelAndStopPropagation(); //Factory.Blueprint = tween; //Factory.Play(e.Target); }, EventPhase.Capture | EventPhase.Target); }
// fires after the GUI component is instantiated void ComponentInstantiated(Component component) { //Slider slider = (Slider) component; // you can do a cast here component.AddEventListener(Trigger, delegate(Event e) { CollapseAlphaLeftTop tween = new CollapseAlphaLeftTop { Bounds = Bounds }; tween.Play(e.Target); e.CancelAndStopPropagation(); //Factory.Blueprint = tween; //Factory.Play(e.Target); }, EventPhase.Capture | EventPhase.Target); }