ClassScopeFlag
Represents a flag within the scope of Telerik's control architecture, providing an enumeration of possible states or behaviors.
Definition
Namespace:Telerik.Windows.Controls.Scopes
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag")]
public abstract class ScopeFlag : IScopeFlag
Inheritance: objectScopeFlag
Derived Classes:
Implements:
Constructors
ScopeFlag()
Declaration
protected ScopeFlag()
Properties
CancelScopeCallback
Represents a callback function that is invoked when a cancel scope event occurs.
CloseScopeCallback
Represents a callback function that is invoked when a scope is closed.
IsActive
Gets a value indicating whether the scope flag is currently active.
Declaration
public abstract bool IsActive { get; }
Property Value
A boolean value that indicates the active state of the scope flag.
Implements
ThrowOnError
Defines the error handling behavior for the ScopeFlag. When set to true, exceptions will be thrown when an error occurs; otherwise, errors will be handled silently.
Declaration
public bool ThrowOnError { get; set; }
Property Value
Returns the current instance of ScopeFlag for method chaining.
Methods
BeginScope()
Begins a new scope within the current context, allowing for scoped operations.
Declaration
public IDisposable BeginScope()
Returns
A ScopeFlag that represents the newly created scope.
Implements
Cancel()
Cancels the current operation or action within the scope.
Declaration
public void Cancel()
Implements
CloseScope()
Closes the current scope, finalizing any operations and releasing resources associated with it.
Declaration
protected abstract void CloseScope()
End()
Indicates the end of a scope in the Telerik Windows Controls.
Declaration
public void End()
Implements
OnScopeCanceled()
Invokes the callback for canceling the scope, if it has been set.
Declaration
protected virtual void OnScopeCanceled()
OnScopeClosed()
Invokes the callback for closing the scope, if it has been set.
Declaration
protected virtual void OnScopeClosed()
OpenScope()
Opens the current scope, allowing for additional operations to be performed within it.
Declaration
public abstract void OpenScope()
Implements