New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public abstract class ScopeFlag : IScopeFlag

Inheritance: objectScopeFlag

Derived Classes: NestedScopeFlagSingleScopeFlag

Implements: IScopeFlag

Constructors

C#
protected ScopeFlag()

Properties

Represents a callback function that is invoked when a cancel scope event occurs.

C#
public Action CancelScopeCallback { get; set; }

Represents a callback function that is invoked when a scope is closed.

C#
public Action CloseScopeCallback { get; set; }

Gets a value indicating whether the scope flag is currently active.

C#
public abstract bool IsActive { get; }
Property Value:

A boolean value that indicates the active state of the scope flag.

Implements: IScopeFlag.IsActive

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.

C#
public bool ThrowOnError { get; set; }
Property Value:

Returns the current instance of ScopeFlag for method chaining.

Methods

Begins a new scope within the current context, allowing for scoped operations.

C#
public IDisposable BeginScope()
Returns:

IDisposable

A ScopeFlag that represents the newly created scope.

Implements: IScopeFlag.BeginScope()

Cancels the current operation or action within the scope.

C#
public void Cancel()

Implements: IScopeFlag.Cancel()

Closes the current scope, finalizing any operations and releasing resources associated with it.

C#
protected abstract void CloseScope()

Indicates the end of a scope in the Telerik Windows Controls.

C#
public void End()

Implements: IScopeFlag.End()

Invokes the callback for canceling the scope, if it has been set.

C#
protected virtual void OnScopeCanceled()

Invokes the callback for closing the scope, if it has been set.

C#
protected virtual void OnScopeClosed()

Opens the current scope, allowing for additional operations to be performed within it.

C#
public abstract void OpenScope()

Implements: IScopeFlag.OpenScope()