VisualStateManager.RaiseCurrentStateChanging Yöntem

Tanım

Belirtilen CurrentStateChanging nesnede olayı tetiklerVisualStateGroup.

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)

Parametreler

stateGroup
VisualStateGroup

Olayın oluştuğu nesne CurrentStateChanging .

oldState
VisualState

Denetimin geçiş yaptığı durum.

newState
VisualState

Denetimin geçiş yaptığı durum.

control
FrameworkElement

Durum geçişini sağlayan denetim.

stateGroupsRoot
FrameworkElement

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

Özel durumlar

stateGroupsRoot, null'e eşittir.

-veya-

newState, null'e eşittir.

Açıklamalar

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

Devralanlara Notlar

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

Şunlara uygulanır