private void RangeMaxThumb_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e) { m_colorModel.m_controlPts[2].m_value = (int)RangeMaxThumb.Value; m_colorModel.m_controlPts[2].m_colorIndex = 1023; m_colorModel.BuildColorMap(); if (ImageDisplayControl.IsReady())// && ImageDisplayControl.HasImage()) { ImageDisplayControl.SetColorMap(m_colorModel.m_colorMap); ImageDisplayControl.UpdateImage(); } }
private void RangeSlider_TrackFillDragCompleted(object sender, Infragistics.Controls.Editors.TrackFillChangedEventArgs <double> e) { m_colorModel.m_controlPts[1].m_value = (int)RangeMinThumb.Value; m_colorModel.m_controlPts[1].m_colorIndex = 0; m_colorModel.m_controlPts[2].m_value = (int)RangeMaxThumb.Value; m_colorModel.m_controlPts[2].m_colorIndex = 1023; m_colorModel.BuildColorMap(); if (ImageDisplayControl.IsReady())// && ImageDisplayControl.HasImage()) { ImageDisplayControl.SetColorMap(m_colorModel.m_colorMap); ImageDisplayControl.UpdateImage(); } }