internal void UpdateVisualState(bool useTransitions) { var state = this.CreateVisualState(); if (VisualStateManager.GoToState(this, state.ToString(), useTransitions)) { this.visualStateCache = state; this.OnAnimationContextChanged(); } }
/// <summary> /// Initializes a new instance of the <see cref="Segment"/> class. /// </summary> public Segment() { this.DefaultStyleKey = typeof(Segment); this.visualStateCache = SegmentVisualState.Normal; }
/// <summary> /// /// </summary> /// <param name="segment">The segment that has initiated the event.</param> public SegmentAnimationContextEventArgs(Segment segment) { this.layoutSlot = segment.LayoutSlot; this.visualState = segment.VisualState; }