Search code examples
silverlightdatepickercomponentone

Silverlight component One Datepicker scrolling changes date


is there a way to stop a Component One datepicker from changing dates when the mouse is over the datepicker and the scroll wheel is scrolled?


Solution

  • with currently released version I see the only way to inherit from it:

    public class MyDatePicker : C1DatePicker
    {
        protected override void OnMouseWheel(System.Windows.Input.MouseWheelEventArgs e)
        {
            e.Handled = true;
            base.OnMouseWheel(e);
        }
    }
    

    We have absolutely free support forums for such questions: http://our.componentone.com/groups/silverlight/studio-for-silverlight/forum/