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

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

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

            hsvControl.OnThumbDragDelta(e);
        }