共用方式為


CalendarDatePicker.CalendarViewDayItemChanging 事件

定義

在選擇器的CalendarView中載入CalendarViewDayItem時發生。

// Register
event_token CalendarViewDayItemChanging(CalendarViewDayItemChangingEventHandler const& handler) const;

// Revoke with event_token
void CalendarViewDayItemChanging(event_token const* cookie) const;

// Revoke with event_revoker
CalendarDatePicker::CalendarViewDayItemChanging_revoker CalendarViewDayItemChanging(auto_revoke_t, CalendarViewDayItemChangingEventHandler const& handler) const;
public event CalendarViewDayItemChangingEventHandler CalendarViewDayItemChanging;
function onCalendarViewDayItemChanging(eventArgs) { /* Your code */ }
calendarDatePicker.addEventListener("calendarviewdayitemchanging", onCalendarViewDayItemChanging);
calendarDatePicker.removeEventListener("calendarviewdayitemchanging", onCalendarViewDayItemChanging);
- or -
calendarDatePicker.oncalendarviewdayitemchanging = onCalendarViewDayItemChanging;
Public Custom Event CalendarViewDayItemChanging As CalendarViewDayItemChangingEventHandler 
<CalendarDatePicker CalendarViewDayItemChanging="eventhandler"/>

事件類型

備註

此方法來自 CalendarDatePicker的內部 CalendarView。 如需詳細資訊,請參閱 CalendarView.CalendarViewDayItemChanging

適用於

另請參閱