共用方式為


DatePicker.OnCalendarOpened(RoutedEventArgs) 方法

定義

引發 CalendarOpened 路由事件。

protected:
 virtual void OnCalendarOpened(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnCalendarOpened (System.Windows.RoutedEventArgs e);
abstract member OnCalendarOpened : System.Windows.RoutedEventArgs -> unit
override this.OnCalendarOpened : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnCalendarOpened (e As RoutedEventArgs)

參數

e
RoutedEventArgs

事件的資料。

給繼承者的注意事項

在衍生類別中覆 OnCalendarOpened(RoutedEventArgs) 寫時,請務必呼叫基類的 OnCalendarOpened(RoutedEventArgs) 方法,讓已註冊的委派接收事件。

適用於