Share via


VisualStateManager.RaiseCurrentStateChanged Yöntem

Tanım

Belirtilen VisualStateGroup nesnede CurrentStateChanging olayı tetikler.

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

Parametreler

stateGroup
VisualStateGroup

Olayın üzerinde gerçekleştiği nesne CurrentStateChanging .

oldState
VisualState

Denetimin geçiş yaptığı durum.

newState
VisualState

Denetimin geçiş yaptığı durum.

control
FrameworkElement

Durumları geçişte olan denetim.

stateGroupsRoot
FrameworkElement

öğesini içeren VisualStateManagerkök öğesi.

Özel durumlar

stateGroupsRoot, null değeridir.

-veya-

newState, null değeridir.

Açıklamalar

VisualStateGroup bir denetimin üzerinde ControlTemplate ayarlandığında, control parametresi sahibi ControlTemplateolan denetime ayarlanır. VisualStateGroup, üzerinde FrameworkElementcontrol ayarlandığında ve null parametresini stateGroupsRoot kullanmanız gerekir.

Devralanlara Notlar

Türetilmiş bir sınıfta geçersiz kılma RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) sırasında, kayıtlı temsilcilerin olayı alması için temel sınıfın RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) yöntemini çağırdığınızdan emin olun.

Şunlara uygulanır