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

Provides the basic functionality for scope flags.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public abstract class ScopeFlag : IScopeFlag

Inheritance: objectScopeFlag

Derived Classes: NestedScopeFlagSingleScopeFlag

Implements: IScopeFlag

Constructors

C#
protected ScopeFlag()

Properties

Gets or sets the callback which will be executed on scope close.

C#
public Action CloseScopeCallback { get; set; }

Gets whether the scope is active.

C#
public abstract bool IsActive { get; }

Implements: IScopeFlag.IsActive

Gets or sets whether to throw InvalidOperationException on error or not.

C#
public bool ThrowOnError { get; set; }

Methods

Creates new scope.

C#
public IDisposable BeginScope()
Returns:

IDisposable

Implements: IScopeFlag.BeginScope()

Cancels the scope.

C#
public abstract void Cancel()

Implements: IScopeFlag.Cancel()

When overridden is executed when the scope is removed and before firing the event.

C#
protected abstract void CloseScope()

Removes the scope.

C#
public void End()

Implements: IScopeFlag.End()

Executed when the scope is closed. Fires the ScopeClosed and execute the CloseScopeCallback action.

C#
protected virtual void OnScopeClosed(EventArgs eventArgs)
Parameters:eventArgsEventArgs

Opens the scope.

C#
public abstract void OpenScope()

Implements: IScopeFlag.OpenScope()

Events

Occurs when the scope is closed.

C#
public event EventHandler ScopeClosed

Implements: IScopeFlag.ScopeClosed