VisualStateManager.RaiseCurrentStateChanging Método

Definición

Genera el CurrentStateChanging evento en el objeto especificado VisualStateGroup .

protected:
 void RaiseCurrentStateChanging(System::Windows::VisualStateGroup ^ stateGroup, System::Windows::VisualState ^ oldState, System::Windows::VisualState ^ newState, System::Windows::FrameworkElement ^ control, System::Windows::FrameworkElement ^ stateGroupsRoot);
protected void RaiseCurrentStateChanging(System.Windows.VisualStateGroup stateGroup, System.Windows.VisualState oldState, System.Windows.VisualState newState, System.Windows.FrameworkElement control, System.Windows.FrameworkElement stateGroupsRoot);
member this.RaiseCurrentStateChanging : System.Windows.VisualStateGroup * System.Windows.VisualState * System.Windows.VisualState * System.Windows.FrameworkElement * System.Windows.FrameworkElement -> unit
Protected Sub RaiseCurrentStateChanging (stateGroup As VisualStateGroup, oldState As VisualState, newState As VisualState, control As FrameworkElement, stateGroupsRoot As FrameworkElement)

Parámetros

stateGroup
VisualStateGroup

Objeto en el que se produjo el CurrentStateChanging evento.

oldState
VisualState

Estado desde el que se realiza la transición del control.

newState
VisualState

El estado al que se está realizando la transición del control.

control
FrameworkElement

Control que realiza la transición de estados.

stateGroupsRoot
FrameworkElement

Elemento raíz que contiene .VisualStateManager

Excepciones

stateGroupsRoot es null.

O bien

newState es null.

Comentarios

VisualStateGroup Cuando se establece en de ControlTemplate un control , el control parámetro se establece en el control que posee ControlTemplate. VisualStateGroup Cuando se establece en , FrameworkElementcontrol es null y debe usar el stateGroupsRoot parámetro .

Notas a los desarrolladores de herederos

Al invalidar RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) en una clase derivada, asegúrese de llamar al método de RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) la clase base para que los delegados registrados reciban el evento.

Se aplica a