ScopeFlag
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:
public abstract class ScopeFlag : IScopeFlag
Inheritance: objectScopeFlag
Derived Classes:
Implements:
Constructors
protected ScopeFlag()
Properties
Represents a callback function that is invoked when a cancel scope event occurs.
public Action CancelScopeCallback { get; set; }
Represents a callback function that is invoked when a scope is closed.
public Action CloseScopeCallback { get; set; }
Gets a value indicating whether the scope flag is currently active.
public abstract bool IsActive { get; }
A boolean value that indicates the active state of the scope flag.
Implements:
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.
public bool ThrowOnError { get; set; }
Returns the current instance of ScopeFlag for method chaining.
Methods
Begins a new scope within the current context, allowing for scoped operations.
public IDisposable BeginScope()
A ScopeFlag that represents the newly created scope.
Implements:
Cancels the current operation or action within the scope.
public void Cancel()
Implements:
Closes the current scope, finalizing any operations and releasing resources associated with it.
protected abstract void CloseScope()
Indicates the end of a scope in the Telerik Windows Controls.
public void End()
Implements:
Invokes the callback for canceling the scope, if it has been set.
protected virtual void OnScopeCanceled()
Invokes the callback for closing the scope, if it has been set.
protected virtual void OnScopeClosed()
Opens the current scope, allowing for additional operations to be performed within it.
public abstract void OpenScope()
Implements: