rs.LowerValue = 30;
rs.UpperValue = 90;
rs.Minimum = 0;
rs.Maximum = 100;
this.elementHost1.Child = rs;
rs.OnLowerSlider_ValueChanged += new BetterControl.RangeSlider.MyControlEventHandler(rs_OnLowerSlider_ValueChanged);
rs.OnUpperSlider_ValueChanged += new BetterControl.RangeSlider.MyControlEventHandler(rs_OnUpperSlider_ValueChanged);
and add the function for the value changed:
void rs_OnLowerSlider_ValueChanged(object sender, double result)
{
MessageBox.Show("L"+result.ToString());
}
void rs_OnUpperSlider_ValueChanged(object sender, double result)
{
MessageBox.Show("U" + result.ToString());
}