Class ServiceLocator
Represents a class that can return and register services.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class ServiceLocator : IServiceLocator, IGraphServiceLocator
Constructors
ServiceLocator(IGraphInternal, IControllerService)
Initializes a new instance of the ServiceLocator class.
Declaration
public ServiceLocator(IGraphInternal graph, IControllerService controller)
Parameters
IGraphInternal
graph
|
IControllerService
controller
|
Methods
GetService<T>()
Gets a service.
Declaration
public T GetService<T>()
Returns
T
|
Type Parameters
T
|
Implements
Register<T>(T)
Registers new service.
Declaration
public void Register<T>(T service)
Parameters
T
service
The service. |
Type Parameters
T
|
Implements
RegisterDefaultServices()
Registers the default services.
Declaration
public void RegisterDefaultServices()
Implements
Events
ServiceRegistered
Occurs when a service is registered.
Declaration
public event EventHandler<ServiceRegisterEventArgs> ServiceRegistered
Event Type
System.EventHandler<ServiceRegisterEventArgs>
|
Implements
Explicit Interface Implementations
IGraphServiceLocator.AdornerService
Declaration
IAdornerService IGraphServiceLocator.AdornerService { get; }
Returns
IAdornerService
|
Implements
IGraphServiceLocator.ControllerService
Declaration
IControllerService IGraphServiceLocator.ControllerService { get; }
Returns
IControllerService
|
Implements
IGraphServiceLocator.DataTransferService
Declaration
IDataTransferService IGraphServiceLocator.DataTransferService { get; }
Returns
IDataTransferService
|
Implements
IGraphServiceLocator.DraggingService
Declaration
IDraggingService IGraphServiceLocator.DraggingService { get; }
Returns
IDraggingService
|
Implements
IGraphServiceLocator.DrawingService
Declaration
IDrawingService IGraphServiceLocator.DrawingService { get; }
Returns
IDrawingService
|
Implements
IGraphServiceLocator.GroupService
Declaration
IGroupService IGraphServiceLocator.GroupService { get; }
Returns
IGroupService
|
Implements
IGraphServiceLocator.HitTestService
Declaration
IHitTestService IGraphServiceLocator.HitTestService { get; }
Returns
IHitTestService
|
Implements
IGraphServiceLocator.LayoutService
Declaration
ILayoutService IGraphServiceLocator.LayoutService { get; }
Returns
ILayoutService
|
Implements
IGraphServiceLocator.ManipulationPointService
Declaration
IManipulationPointService IGraphServiceLocator.ManipulationPointService { get; }
Returns
IManipulationPointService
|
Implements
IGraphServiceLocator.ResizingService
Declaration
IResizingService IGraphServiceLocator.ResizingService { get; }
Returns
IResizingService
|
Implements
IGraphServiceLocator.RotationService
Declaration
IRotationService IGraphServiceLocator.RotationService { get; }
Returns
IRotationService
|
Implements
IGraphServiceLocator.RoutingService
Declaration
IRoutingService IGraphServiceLocator.RoutingService { get; }
Returns
IRoutingService
|
Implements
IGraphServiceLocator.SegmentationService
Declaration
ISegmentationService IGraphServiceLocator.SegmentationService { get; }
Returns
ISegmentationService
|
Implements
IGraphServiceLocator.SelectionService
Declaration
ISelectionService<IDiagramItem> IGraphServiceLocator.SelectionService { get; }
Returns
ISelectionService<IDiagramItem>
|
Implements
IGraphServiceLocator.SerializationService
Declaration
ISerializationService IGraphServiceLocator.SerializationService { get; }
Returns
ISerializationService
|
Implements
IGraphServiceLocator.SnappingService
Declaration
ISnappingService IGraphServiceLocator.SnappingService { get; }
Returns
ISnappingService
|
Implements
IGraphServiceLocator.ToolService
IGraphServiceLocator.UndoRedoService
Declaration
IUndoRedoService IGraphServiceLocator.UndoRedoService { get; }
Returns
IUndoRedoService
|
Implements
IGraphServiceLocator.VirtualizationService
Declaration
IVirtualizationService IGraphServiceLocator.VirtualizationService { get; }
Returns
IVirtualizationService
|