如何在xamMonthcalendar中禁用MouseOVer以禁用日期 [英] How to disable the MouseOVer for disable dates in xamMonthcalendar

查看:101
本文介绍了如何在xamMonthcalendar中禁用MouseOVer以禁用日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

b




我的申请表中有xammonthcalendar。

我已禁用未来日期(从今天开始。)。$
我为calendarITem定义了控制模板,并为MouseOver定义了日历日的样式。

但它适用于禁用日期和启用日期。

如何禁用鼠标停用禁用日期。



提前付款

Hi,


I have xammonthcalendar in my application.
I have disabled the future dates(From today.).
I have defind control template for calendarITem and the defined a style for calendar Day for MouseOver.
But it is working for both disable dates and enable dates.
how to disable the mouse over for disable dates.

Thanks in advance

推荐答案

嘿,拉米什。我希望你没事。

Hey, Ramish. I hope you're fine.

 您可以定义"MouseMove"和"MouseMove"。或"MouseEnter"或"MouseEnter"。事件和处理它们,在处理过程中,您可以检查禁用日期的样式,如果是真的,只需使用以下代码段来停止事件的执行:

  You may define a "MouseMove" or "MouseEnter" events and handle them and in the handling procedure you may check for the style of the disabled dates and if it's true just use the following code segment to stop the execution of the event:

if(条件为真)

{

  e.Handled = true; //这告诉处理程序事件已处理,这将停止事件的效果。

  e.Handled = true; //This tells the handler that the event is handled and this will stop the event's effect.

 返回; //退出程序。

  return; // return out of the procedure.

}

else

{

  //在这里做任何你想要的事情......

  // Do whatever you want here..

}

 

我希望这可能有所帮助或至少让您了解事情的进展情况。请将我的回复标记为"Asnwer"。如果它有帮助。

I hope this might help or at least gives you an idea on how things may go. Please, mark my reply as "Asnwer" if it helped.


这篇关于如何在xamMonthcalendar中禁用MouseOVer以禁用日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆