Interface IVirtualizationService
The service supporting the virtualization of diagram items which are not visible in the viewport anymore.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface IVirtualizationService
Remarks
Note that this service can be customized and plugged into the ServiceLocator.
Properties
IsBlocked
When set to True, no virtualization or realization is done. When set to False, virtualization or serialization is processed normally.
Declaration
bool IsBlocked { get; set; }
Property Value
System.Boolean
|
Methods
ForceRealization()
Forces the realization of all items.
Declaration
void ForceRealization()
Remarks
When implementing a layout algorithm you need to call this method in order to take all the bounds into account.
IsInViewport(IDiagramItem)
Determines whether the item is in the viewport.
Declaration
bool IsInViewport(IDiagramItem item)
Parameters
IDiagramItem
item
The item. |
Returns
System.Boolean
|
NotifyItemsChanged(NotifyCollectionChangedEventArgs)
Notifies items change.
Declaration
void NotifyItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data. |
Realize(Rect)
Realizes the items contained in provided bounds and virtualizes the others.
Declaration
void Realize(Rect enclosingBounds)
Parameters
Rect
enclosingBounds
Items inside will be realized. |
Virtualize()
Virtualizes this instance.
Declaration
void Virtualize()
Virtualize(IEnumerable<IDiagramItem>)
Virtualizes the specified items.
Declaration
void Virtualize(IEnumerable<IDiagramItem> items)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items. |