Udostępnij za pośrednictwem


ModelEditingScope.CanComplete Method

Determines whether the OnComplete method can be called, or whether the change should instead be reverted.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected MustOverride Function CanComplete As Boolean
'Usage
Dim returnValue As Boolean 

returnValue = Me.CanComplete()
protected abstract bool CanComplete()
protected:
virtual bool CanComplete() abstract
protected abstract function CanComplete() : boolean

Return Value

Type: System.Boolean
true if completion can occur; false if the change should instead be reverted.

Remarks

An example of when a change should be reverted is when a file cannot be checked out of a source control system for modification.

.NET Framework Security

See Also

Reference

ModelEditingScope Class

ModelEditingScope Members

Microsoft.Windows.Design.Model Namespace

Other Resources

Walkthrough: Creating a Design-time Adorner

WPF Designer Extensibility