共用方式為


TreeViewItem.OnCollapsed(RoutedEventArgs) 方法

定義

Collapsed 屬性從 true 變更為 false 時,就會引發 IsExpanded 事件。

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

參數

e
RoutedEventArgs

事件引數。

適用於