RedockService
Represents a service that allows a DockWindow state to be saved and restored later on.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public class RedockService : RadDockService, IDisposable, INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectRadDockObjectRadDockServiceRedockService
Implements:
Inherited Members
Constructors
Default constructor.
public RedockService()
Properties
Determines whether clean-up is currently suspended.
public bool IsCleanUpSuspended { get; }
Gets an array with all the states that are currently marked for clean-up.
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.
public void CleanUp()
Removes all the redock states saved for the specified window.
Removes previously saved redock state for the specified window for the specified DockState.
public bool ClearState(DockWindow window, DockState dockState)
Gets a RedockState instance for the specified window and DockState.
protected RedockState GetState(DockWindow window, DockState state, bool remove)
The window for which to look-up a state.
stateDockStateThe DockState to look-up for.
removeboolTrue to remove the redock state from the list, false otherwise.
Returns:public void Redock(DockWindow window, bool defaultAction)
Performs a redock operation upon specified window.
public void Redock(DockWindow window, RedockTransactionReason reason, bool defaultAction)
True to perform default action if no state is recorded for a window, false otherwise.
Performs a redock operation upon specified windows.
public void Redock(IEnumerable<DockWindow> windows, bool defaultAction)
True to perform default action if no state is recorded for a window, false otherwise.
Performs a redock operation upon specified windows.
public void Redock(IEnumerable<DockWindow> windows, RedockTransactionReason reason, bool defaultAction)
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.
Attempts to restore the state the window to the desired dock state.
public void RestoreState(DockWindow window, DockState state, bool defaultAction)
The target state which is to be restored.
defaultActionboolTrue 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.
public void RestoreState(IEnumerable<DockWindow> windows, DockState state, bool defaultAction)
The target state which is to be restored.
defaultActionboolTrue to perform default action if no state is recorded for a window, false otherwise.
Resumes previously suspended clean-up.
public void ResumeCleanUp(bool forceCleanUp)
True to force a clean-up pass, false otherwise.
Saves the current state of the specified window.
Preforms the core Save logic.
Temporary suspends any clean-up operations. Used by the owning RadDock instance to prevent undesired processing during multiple transactions stack.
public void SuspendCleanUp()