示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }