MiniToolBarService Class
Represents a service that manages the display of a MiniToolBar.
public class MiniToolBarService
- Inheritance:
- object object
Constructors
MiniToolBarService()
Initializes an instance of the class.
public MiniToolBarService()
Properties
ActiveMiniToolBar
Gets the MiniToolBar that is currently active, if any.
public static MiniToolBar ActiveMiniToolBar { get; }
Property Value
- MiniToolBar:
The MiniToolBar that is currently active.
Methods
Hide()
Hides any open mini-toolbar.
public static void Hide()
NotifyMouseMove(Point)
Notifies the service of a mouse move event, so that an active mini-toolbar can respond appropriately.
public static void NotifyMouseMove(Point point)
Parameter | Type | Description |
---|---|---|
point | Point | A System.Windows.Point relative to the ActiveMiniToolBar. |
Remarks
This method is only used when the standard WPF input processor doesn't receive mouse messages, such as when the mouse is over an interop control. In that scenario, you can manually call this method to pass along the mouse move event info.
Show(MiniToolBar, UIElement, Point)
Shows a MiniToolBar for standalone use.
public static void Show(MiniToolBar toolBar, UIElement placementTarget, Point clientLocation)
Parameter | Type | Description |
---|---|---|
toolBar | MiniToolBar | The MiniToolBar to show. |
placementTarget | UIElement | The UIElement that is the target of the popup placement. |
clientLocation | Point | A System.Windows.Point within the placement target around which to display the popup. |