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

Represents a service that allows a DockWindow state to be saved and restored later on.

Definition

Constructors

Default constructor.

C#
public RedockService()

Properties

Determines whether clean-up is currently suspended.

C#
public bool IsCleanUpSuspended { get; }

Gets an array with all the states that are currently marked for clean-up.

C#
protected RedockState[] StatesForCleanup { get; }

Methods

Removes previous redock states which are no longer valid. For example, if we save a state for a dock window in a Docked state, we need to remove any previous redock state for the Docked state.

C#
public void CleanUp()

Removes all the redock states saved for the specified window.

C#
public void ClearAllStates(DockWindow window)
Parameters:windowDockWindow

Removes previously saved redock state for the specified window for the specified DockState.

C#
public bool ClearState(DockWindow window, DockState dockState)
Parameters:windowDockWindowdockStateDockStateReturns:

bool

Retrieves the new DockState for a redock operation, depending on the provided current DockState.

C#
public static DockState GetNewDockState(DockState currState)
Parameters:currStateDockStateReturns:

DockState

Gets a RedockState instance for the specified window and DockState.

C#
protected RedockState GetState(DockWindow window, DockState state, bool remove)
Parameters:windowDockWindow

The window for which to look-up a state.

stateDockState

The DockState to look-up for.

removebool

True to remove the redock state from the list, false otherwise.

Returns:

RedockState

Determines whether a Save operation is applicable for the specified window. Currently supported states are Docked and Floating.

C#
public bool IsSaveApplicable(DockWindow window)
Parameters:windowDockWindowReturns:

bool

C#
public void Redock(DockWindow window, bool defaultAction)
Parameters:windowDockWindowdefaultActionbool

Performs a redock operation upon specified window.

C#
public void Redock(DockWindow window, RedockTransactionReason reason, bool defaultAction)
Parameters:windowDockWindowreasonRedockTransactionReasondefaultActionbool

True to perform default action if no state is recorded for a window, false otherwise.

Performs a redock operation upon specified windows.

C#
public void Redock(IEnumerable<DockWindow> windows, bool defaultAction)
Parameters:windowsIEnumerable<DockWindow>defaultActionbool

True to perform default action if no state is recorded for a window, false otherwise.

Performs a redock operation upon specified windows.

C#
public void Redock(IEnumerable<DockWindow> windows, RedockTransactionReason reason, bool defaultAction)
Parameters:windowsIEnumerable<DockWindow>reasonRedockTransactionReasondefaultActionbool

True to perform default action if no state is recorded for a window, false otherwise.

Releases previous redock state. Current implementation simply notifies the referenced DockTabStrip that it is not a redock target anymore.

C#
protected void RemovePreviousState(RedockState oldState)
Parameters:oldStateRedockState

Attempts to restore the state the window to the desired dock state.

C#
public void RestoreState(DockWindow window, DockState state, bool defaultAction)
Parameters:windowDockWindowstateDockState

The target state which is to be restored.

defaultActionbool

True to perform default action if no state is recorded for a window, false otherwise.

Attempts to restore the state of each window to the specified one.

C#
public void RestoreState(IEnumerable<DockWindow> windows, DockState state, bool defaultAction)
Parameters:windowsIEnumerable<DockWindow>stateDockState

The target state which is to be restored.

defaultActionbool

True to perform default action if no state is recorded for a window, false otherwise.

Resumes previously suspended clean-up.

C#
public void ResumeCleanUp(bool forceCleanUp)
Parameters:forceCleanUpbool

True to force a clean-up pass, false otherwise.

Saves the current state of the specified window.

C#
public virtual bool SaveState(DockWindow window)
Parameters:windowDockWindowReturns:

bool

Preforms the core Save logic.

C#
protected virtual bool SaveStateCore(DockWindow window)
Parameters:windowDockWindowReturns:

bool

Temporary suspends any clean-up operations. Used by the owning RadDock instance to prevent undesired processing during multiple transactions stack.

C#
public void SuspendCleanUp()