FrameworkElement.ActualThemeChanged Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lorsque la valeur de la propriété ActualTheme a changé.
// Register
event_token ActualThemeChanged(TypedEventHandler<FrameworkElement, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActualThemeChanged(event_token const* cookie) const;
// Revoke with event_revoker
FrameworkElement::ActualThemeChanged_revoker ActualThemeChanged(auto_revoke_t, TypedEventHandler<FrameworkElement, IInspectable const&> const& handler) const;
public event TypedEventHandler<FrameworkElement,object> ActualThemeChanged;
function onActualThemeChanged(eventArgs) { /* Your code */ }
frameworkElement.addEventListener("actualthemechanged", onActualThemeChanged);
frameworkElement.removeEventListener("actualthemechanged", onActualThemeChanged);
- or -
frameworkElement.onactualthemechanged = onActualThemeChanged;
Public Custom Event ActualThemeChanged As TypedEventHandler(Of FrameworkElement, Object)
<frameworkElement ActualTheme="eventhandler"/>
Type d'événement
TypedEventHandler<FrameworkElement,IInspectable>
Configuration requise pour Windows
Famille d’appareils |
Windows 10 Fall Creators Update (introduit dans 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduit dans v5.0)
|
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour