private void SliderValueChanged(object sender, CCControl.CCControlEventArgs e)
        {
            var slider = (CCControlSlider)sender;
            // Change value of label.
            if (slider.Tag == 1)
                DisplayValueLabel.Text = (String.Format("Upper slider value = {0:0.00}", slider.Value));
            if (slider.Tag == 2)
                DisplayValueLabel.Text = (String.Format("Lower slider value = {0:0.00}", slider.Value));

        }
 private void ControlButton_TouchCancel(object sender, CCControl.CCControlEventArgs e)
 {
     DisplayValueLabel.Text = ("Touch Cancel");
 }
 private void ControlButton_TouchUpOutside(object sender, CCControl.CCControlEventArgs e)
 {
     DisplayValueLabel.Text = ("Touch Up Outside.");
 }
 private void ControlButton_TouchDragExit(object sender, CCControl.CCControlEventArgs e)
 {
     DisplayValueLabel.Text = ("Drag Exit");
 }
 private void SwitchControl_ValueChanged(object sender, CCControl.CCControlEventArgs e)
 {
     ValueChanged(sender, e.ControlEvent);
 }
 private void Potentiometer_ValueChanged(object sender, CCControl.CCControlEventArgs e)
 {
     ValueChanged(sender, e.ControlEvent);
 }