Exemple #1
0
        private static void OnValueChanged(
            DependencyObject relatedObject, DependencyPropertyChangedEventArgs e)
        {
            HsvControl hsvControl = relatedObject as HsvControl;

            if (hsvControl != null && !hsvControl.m_withinUpdate)
            {
                hsvControl.UpdateThumbPosition();
            }
        }
Exemple #2
0
        private static void OnHueChanged(
            DependencyObject relatedObject, DependencyPropertyChangedEventArgs e)
        {
            HsvControl hsvControl = relatedObject as HsvControl;

            if (hsvControl != null && !hsvControl.m_withinUpdate)
            {
                hsvControl.UpdateSelectedColor();
            }
        }
Exemple #3
0
        private static void OnThumbDragDelta(object sender, DragDeltaEventArgs e)
        {
            HsvControl hsvControl = sender as HsvControl;

            hsvControl.OnThumbDragDelta(e);
        }