Click or drag to resize
AB4D logo

MouseCameraControllerInfo Class

MouseCameraControllerInfo shows images of keyboard and mouse button that describe how user can rotate and move the camera.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsPanel
              System.Windows.ControlsGrid
                Ab3d.ControlsMouseCameraControllerInfo

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class MouseCameraControllerInfo : Grid

The MouseCameraControllerInfo type exposes the following members.

Constructors
 NameDescription
Public methodMouseCameraControllerInfo Initializes a new instance of MouseCameraControllerInfo.
Top
Properties
 NameDescription
Public propertyAltText Gets or sets a text that is displayed for Alt key. Default value is "Alt". After changing the value you may need to call Update method.
Public propertyCtrlText Gets or sets a text that is displayed for Control key. Default value is "Ctrl". After changing the value you may need to call Update method.
Public propertyFontSize Gets or sets a Boolean that specifies the size of the info text.
Public propertyFontWeight Gets or sets a font weight
Public propertyForeground Gets or sets a Boolean that a brush that is used to color the text.
Public propertyMouseCameraController Gets or sets a Boolean that a brush that is used to color the text.
Public propertyMoveCameraText Gets or sets a text that is displayed for "Move camera". After changing the value you may need to call Update method.
Public propertyQuickZoomText Gets or sets a text that is displayed for "Quick zoom". After changing the value you may need to call Update method.
Public propertyRotateCameraText Gets or sets a text that is displayed for "Rotate camera". After changing the value you may need to call Update method.
Public propertyShowMoveInfo Gets or sets a Boolean that specifies if information on how to move the camera is shown.
Public propertyShowQuickZoomInfo Gets or sets a Boolean that specifies if information on how to use quick zoom is shown.
Public propertyShowRotateInfo Gets or sets a Boolean that specifies if information on how to rotate the camera is shown.
Top
Methods
 NameDescription
Public methodAddCustomInfoLine AddCustomInfoLine adds custom message with keyboard and mouse button icon to the existing mouse controller info.
Public methodClearCustomInfoLines ClearCustomInfoLines removes all custom messages
Protected methodStatic memberOnMouseCameraControllerPropertyChanged OnPropertyChanged
Protected methodStatic memberOnPropertyChanged OnPropertyChanged
Public methodUpdate Updates the drawn controls
Top
Fields
 NameDescription
Public fieldStatic memberFontSizeProperty FontSizeProperty
Public fieldStatic memberFontWeightProperty FontWeightProperty
Public fieldStatic memberForegroundProperty ForegroundProperty
Public fieldStatic memberMouseCameraControllerProperty MouseCameraControllerProperty
Public fieldStatic memberShowMoveInfoProperty ShowMoveInfoProperty
Public fieldStatic memberShowQuickZoomInfoProperty ShowQuickZoomInfoProperty
Public fieldStatic memberShowRotateInfoProperty ShowRotateInfoProperty
Top
Remarks

MouseCameraControllerInfo shows images of keyboard and mouse button that describe how user can rotate and move the camera.

It is also possible to show custom text with custom mouse and keyboard icon with AddCustomInfoLine(Int32, MouseCameraControllerMouseAndKeyboardConditions, String) method.

The MouseCameraControllerInfo is using MouseWithButtons and KeyboardKey UserControls to show keyboard and mouse.

See Also