I put the silverlight into html
I disabled the mousewheel event by following function.
///////////
At xaml
<telerikScheduler:RadScheduler MouseWheel="scheduler_MouseWheel" MouseEnter="scheduler_MouseEnter".../>
At CS
private void scheduler_MouseWheel(object sender, MouseWheelEventArgs e)
{
//keep the ability of scrolling at whole html page
System.Windows.Browser.HtmlPage.Window.Eval(string.Format("window.scrollBy({0},{1});", 0, -e.Delta));
//disable the ability of scrolling at current schedule
e.Handled = true;
}
//////
It work well when the focus at silverlight,
But when the mouse operate at html(such as click html page)
Then comes back silverlight side without any click,
Just enter the calendar,and wheel the mouse,
Method MouseWheel does not work,but Calendar responds the event.
It looks the Calendar can't capture the event but responds the event.
I add MouseEnter="scheduler_MouseEnter" to the calendar,
///////////////////////////////
private void scheduler_MouseEnter(object sender, MouseEventArgs e)
{
this.scheduler.Focus();
}
///////////////////////////////
this method is triggered every time,but useless.
Is this a bug of calendar or bug of silverlight?
And how can i solve this question?