private void UpdateHueSelection()
        {
            if (m_hueMonitor == null)
            {
                return;
            }
            double huePos = m_huePos / m_hueMonitor.Height * 255;
            Color  c      = m_colorSpace.GetColorFromPosition(huePos);

            m_colorSample.Fill = new SolidColorBrush(c);

            m_hueSelector.SetValue(Canvas.TopProperty, m_huePos - (m_hueSelector.Height / 2));

            Color currColor = GetColor();

            m_selectedColorView.Fill = new SolidColorBrush(currColor);
            m_hexValue.Text          = m_colorSpace.GetHexCode(currColor);

            FireSelectedColorChangingEvent(currColor);
        }
        private void UpdateSelection(int yPos)
        {
            if (m_hueMonitor == null)
            {
                return;
            }

            if (yPos < 0 || yPos > m_hueMonitor.Height)
            {
                return;
            }

            int   huePos        = (int)(yPos / m_hueMonitor.Height * 255);
            int   gradientStops = 6;
            Color c             = m_colorSpace.GetColorFromPosition(huePos * gradientStops);

            m_colorSample.Fill = new SolidColorBrush(c);
            m_hueSelector.SetValue(Canvas.TopProperty, yPos - (m_hueSelector.Height / 2));
            m_selectedHue = (float)(yPos / m_hueMonitor.Height) * 360;
            UpdateSample(m_sampleX, m_sampleY);
        }