-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.ContentPresenter.OnContentTemplateSelectorChanged(Microsoft.UI.Xaml.Controls.DataTemplateSelector,Microsoft.UI.Xaml.Controls.DataTemplateSelector) |
winrt method |
Invoked when the value of the ContentTemplateSelector property changes.
The old value of the ContentTemplateSelector property.
The new value of the ContentTemplateSelector property.
Classes that derive from ContentPresenter can override this method in order to perform any custom logic that should apply, in cases where the selector logic that automatically chooses the DataTemplate based on context changes.