Ejemplo n.º 1
0
        /// <summary>
        /// Handles changes to the ThumbBorderBrush property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnThumbBorderBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            Brush   oldValue = (Brush)e.OldValue;
            Brush   newValue = target.ThumbBorderBrush;

            target.OnThumbBorderBrushChanged(oldValue, newValue);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles changes to the ThumbBorderSize property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnThumbBorderSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            double  oldValue = (double)e.OldValue;
            double  newValue = target.ThumbBorderSize;

            target.OnThumbBorderSizeChanged(oldValue, newValue);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Handles changes to the ScrollingHost property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnScrollingHostChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap      target   = (MiniMap)d;
            ScrollViewer oldValue = (ScrollViewer)e.OldValue;
            ScrollViewer newValue = target.ScrollingHost;

            target.OnScrollingHostChanged(oldValue, newValue);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Handles changes to the SelectedItemIndex property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnSelectedItemIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            int     oldValue = (int)e.OldValue;
            int     newValue = target.SelectedItemIndex;

            target.OnSelectedItemIndexChanged(oldValue, newValue);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Handles changes to the ScatterArea property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnScatterAreaChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap     target   = (MiniMap)d;
            ScatterView oldValue = (ScatterView)e.OldValue;
            ScatterView newValue = target.ScatterArea;

            target.OnScatterAreaChanged(oldValue, newValue);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Handles changes to the ItemsSource property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            object  oldValue = (object)e.OldValue;
            object  newValue = target.ItemsSource;

            target.OnItemsSourceChanged(oldValue, newValue);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Handles changes to the IsVisible property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            bool    oldValue = (bool)e.OldValue;
            bool    newValue = target.IsVisible;

            target.OnIsVisibleChanged(oldValue, newValue);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Handles changes to the AllowItemsRotation property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnAllowItemsRotationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target   = (MiniMap)d;
            bool    oldValue = (bool)e.OldValue;
            bool    newValue = target.AllowItemsRotation;

            target.OnAllowItemsRotationChanged(oldValue, newValue);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Handles changes to the ItemTemplateSelector property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnItemTemplateSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MiniMap target = (MiniMap)d;
            DataTemplateSelector oldValue = (DataTemplateSelector)e.OldValue;
            DataTemplateSelector newValue = target.ItemTemplateSelector;

            target.OnItemTemplateSelectorChanged(oldValue, newValue);
        }