MouseManager
StockSharp.Xaml.Charting.Utility.Mouse
A cross-platform helper class to propagate mouse events in both Silverlight and WPF
Implements: IMouseManager
Constructors
MouseManager
public MouseManager()
mouseManager = MouseManager()
Initializes a new instance of the MouseManager class.
Methods
GetMouseEventGroup
public static string GetMouseEventGroup(DependencyObject element)
result = MouseManager.GetMouseEventGroup(element)
Gets the MouseEventGroup Attached Property
- element
- The element.
SetMouseEventGroup
public static void SetMouseEventGroup(DependencyObject element, string modifierGroup)
MouseManager.SetMouseEventGroup(element, modifierGroup)
Sets the MouseEventGroup Attached Property
- element
- The element.
- modifierGroup
- The modifier group.
Subscribe
public void Subscribe(IPublishMouseEvents source, IReceiveMouseEvents target)
mouseManager.Subscribe(source, target)
Subscribes to mouse events on the Source, propagating handlers to the Target
- source
- The source of mouse events
- target
- The target to receive mouse event handlers
Unsubscribe
public void Unsubscribe(IPublishMouseEvents source)
mouseManager.Unsubscribe(source)
Unsubscribes the source from subscribers
- source
- The source to unsubscribe
Unsubscribe
public void Unsubscribe(IReceiveMouseEvents element)
mouseManager.Unsubscribe(element)
Unsubscribes the element from mouse events
- element
- The element to unsubscribe
Fields
MouseEventGroupProperty
public static readonly DependencyProperty MouseEventGroupProperty
value = MouseManager.MouseEventGroupProperty
Defines the MouseEventGroup Attached Property