DataGrid.UnloadingRowDetails 事件

定義

當資料列詳細資料項目可重複使用時發生。

public:
 event EventHandler<System::Windows::Controls::DataGridRowDetailsEventArgs ^> ^ UnloadingRowDetails;
public event EventHandler<System.Windows.Controls.DataGridRowDetailsEventArgs> UnloadingRowDetails;
member this.UnloadingRowDetails : EventHandler<System.Windows.Controls.DataGridRowDetailsEventArgs> 
Public Custom Event UnloadingRowDetails As EventHandler(Of DataGridRowDetailsEventArgs) 
Public Event UnloadingRowDetails As EventHandler(Of DataGridRowDetailsEventArgs) 

事件類型

備註

針對套用新資料列詳細資料範本的每個資料列,或移除資料列詳細資料範本的每個資料列,都會發生此事件一次。 下列其中一個案例會套用或移除新的詳細資料範本:

此事件可讓您在重複使用資料列詳細資料元素之前,對資料列詳細資料元素進行任何必要的變更。 您通常會使用此事件來復原事件處理常式中 LoadingRowDetails 所做的任何變更。

適用於

另請參閱