Ejemplo n.º 1
0
        internal void UpdateVisualState(bool useTransitions)
        {
            var state = this.CreateVisualState();

            if (VisualStateManager.GoToState(this, state.ToString(), useTransitions))
            {
                this.visualStateCache = state;
                this.OnAnimationContextChanged();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Segment"/> class.
 /// </summary>
 public Segment()
 {
     this.DefaultStyleKey  = typeof(Segment);
     this.visualStateCache = SegmentVisualState.Normal;
 }
Ejemplo n.º 3
0
 /// <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;
 }