public void AdvanceHouse() { if (index < houses.Count) { browsecontrol = new Browsecontrol(houses[++index], this); Transitor.SlideLeft(browsecontrol); } }
private Storyboard GetFinalTransition(Storyboard animator) { WPFHelper.PrepareStoryboardTransitionTo(animator, Children.Cast<UIElement>(), Duration); DoubleAnimation nextAnim = new DoubleAnimation(); Storyboard.SetTarget(nextAnim, this); Storyboard.SetTargetProperty(nextAnim, new PropertyPath("Background.Opacity")); nextAnim.Duration = Duration; nextAnim.From = 1; nextAnim.To = 0; animator.Children.Add(nextAnim); EventHandler handler = null; handler = delegate { animator.Completed -= handler; this.IsHitTestVisible = true; _CuT = null; }; animator.Completed += handler; return animator; }
public ITransitioner GetTransitionner() { if (_CuT != null) { return null; } _CuT = new Transitor(this); return _CuT; }