private static void AutomationSlideChanged(SlideDisplay slideDisplay, int oldValue, int newValue)
        {
            #region Automation events
            if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
            {
                var peer = UIElementAutomationPeer.FromElement(slideDisplay) as SlideDisplayAutomationPeer;

                if (peer != null)
                {
                    peer.RaisePropertyChangedEvent(
                        RangeValuePatternIdentifiers.ValueProperty,
                        (double)oldValue,
                        (double)newValue);
                }
            }
            #endregion
        }
 public SlideDisplayAutomationPeer(SlideDisplay control)
     : base(control)
 {
 }