private void FrequencyValueChangedEventHandler(object sender, ChannelValueChangedEventArgs e)
        {
            var pwmControl = View.Children.FirstOrDefault().AsFrameworkElement as PulseWidthModulationControl;

            if (pwmControl != null)
            {
                pwmControl.FrequencyValue = (double)e.ChannelValue;
            }
        }
        private void DutyCycleValueChangedEventHandler(object sender, ChannelValueChangedEventArgs e)
        {
            var pwmControl = View.Children.FirstOrDefault().AsFrameworkElement as PulseWidthModulationControl;

            if (pwmControl != null)
            {
                pwmControl.DutyCycleValue = (double)e.ChannelValue;
                // don't pass updates to the slider value if we are supressing value updates
                if (!SuppressValueChanges)
                {
                    pwmControl.SliderDutyCycleValue = (double)e.ChannelValue;
                }
            }
        }