ContentElement.OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) ContentElement.OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) ContentElement.OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) ContentElement.OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) Method

定義

當這個項目上引發未處理的 IsStylusCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

protected:
 virtual void OnIsStylusCaptureWithinChanged(System::Windows::DependencyPropertyChangedEventArgs e);
protected virtual void OnIsStylusCaptureWithinChanged (System.Windows.DependencyPropertyChangedEventArgs e);
abstract member OnIsStylusCaptureWithinChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
override this.OnIsStylusCaptureWithinChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
Protected Overridable Sub OnIsStylusCaptureWithinChanged (e As DependencyPropertyChangedEventArgs)

參數

備註

當相依性屬性的值IsStylusCaptureWithin變更其值時, 就會引發這個虛擬方法。This virtual method is raised when the value of the IsStylusCaptureWithin dependency property changes its value. 虛擬方法會先引發, 而且可以視需要操作事件資料。The virtual method is raised first and can manipulate the event data as necessary. 然後, IsStylusCaptureWithinChanged事件會以相同的事件資料實例引發。Then the IsStylusCaptureWithinChanged event is raised with that same event data instance. 請注意, 事件不是路由事件。Notice that the event is not a routed event. 因此, 您無法在類別處理常式中將它標示為已處理。Therefore, you cannot mark it as handled in the class handler.

這個方法沒有預設的實值。This method has no default implementation. 由於繼承中的中繼類別可能會實作為這個方法, 因此建議您在您的執行中呼叫基底實作為。Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation. 視您的需求而定, 您可以在特殊處理之前或之後呼叫基底。You may call base either before or after your special handling, depending on your requirements.

適用於