Exemple #1
0
        /// <summary>
        /// Callback For Indicator listview item source changed
        /// </summary>
        private static void IndicatorItemSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            JFlipViewIndicator indicatorControl = d as JFlipViewIndicator;

            if (indicatorControl != null)
            {
                if (e.NewValue != null && indicatorControl.IsSlideShowPlaying)
                {
                    indicatorControl.IsSlideShowPlaying = true;
                }
            }
        }
Exemple #2
0
        /// <summary>
        ///     Call back -  when PagnationProvider changed
        /// <summary>
        private static void OnIndicatorProviderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            JFlipViewIndicator indicatorControl = d as JFlipViewIndicator;

            if (indicatorControl != null)
            {
                if (indicatorControl.IndicatorProvider == null)
                {
                    JFlipView flipView = e.NewValue as JFlipView;
                    indicatorControl.SubscribeToFlipViewEvents(ref flipView);
                }
            }
        }