Пример #1
0
    /*---------------------------------------------------------------*/

    public void ChangeSlide(Global.Direction direction, int step = 1)
    {
        if (direction == Global.Direction.NEXT)
        {
            SlideControl.NextSlide(step);
        }
        else if (direction == Global.Direction.BACK)
        {
            SlideControl.PreviousSlide(step);
        }
    }
Пример #2
0
        /// <summary>
        /// Initializes the PART_Panel template part.
        /// </summary>
        protected override bool ApplyTemplateCore()
        {
            bool applied = base.ApplyTemplateCore();

            this.slideControl = this.GetTemplatePartField <SlideControl>("PART_SlideControl");
            applied           = applied && this.slideControl != null;

            this.flipControl = this.GetTemplatePartField <FlipControl>("PART_FlipControl");
            applied          = applied && this.flipControl != null;

            return(applied);
        }
 /// <summary>
 /// Initializes a new instance of the SlideControlAutomationPeer class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 public SlideControlAutomationPeer(SlideControl owner)
     : base(owner)
 {
 }