Class VirtualizationService
Simple data virtualization. Assuming containers are generated. Just hiding the items out of the viewport.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class VirtualizationService : GraphServiceBase, IVirtualizationService
Constructors
VirtualizationService(IGraphInternal)
Initializes a new instance of the VirtualizationService class.
Declaration
public VirtualizationService(IGraphInternal graph)
Parameters
IGraphInternal
graph
The graph. |
Properties
IsBlocked
When set to True, no virtualization or realization is done. When set to False, virtualization or serialization is processed normally.
Declaration
public bool IsBlocked { get; set; }
Property Value
System.Boolean
|
Implements
Methods
ForceRealization()
Forces the realization of all items.
Declaration
public void ForceRealization()
Implements
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
public bool IsInViewport(IDiagramItem item)
Parameters
IDiagramItem
item
The item. |
Returns
System.Boolean
|
Implements
NotifyItemsChanged(NotifyCollectionChangedEventArgs)
Notifies items change.
Declaration
public void NotifyItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data. |
Implements
Realize(Rect)
Realizes the items contained in provided bounds and virtualizes the others.
Declaration
public virtual void Realize(Rect enclosingBounds)
Parameters
System.Windows.Rect
enclosingBounds
Items inside will be realized. |
Implements
Virtualize()
Virtualizes this instance.
Declaration
public void Virtualize()
Implements
Virtualize(IEnumerable<IDiagramItem>)
Virtualizes the specified items.
Declaration
public virtual void Virtualize(IEnumerable<IDiagramItem> items)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items. |