Example #1
0
        private static void OnVerticalOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            LoopingPanel panel = d as LoopingPanel;

            if (panel.animating)
            {
                panel.OnScrollOffsetChanged((double)e.NewValue);
            }
        }
Example #2
0
        /// <summary>
        /// Retrieves the control's template parts.
        /// </summary>
        protected override bool ApplyTemplateCore()
        {
            bool applied = base.ApplyTemplateCore();

            this.itemsPanel = this.GetTemplatePartField <LoopingPanel>("PART_Panel");
            applied         = applied && this.itemsPanel != null;

            return(applied);
        }
 internal virtual void Attach(LoopingPanel owner)
 {
     this.panel = owner;
     this.UpdateVisualState(false);
 }