C# Class ICSharpCode.WpfDesign.UIExtensions.MouseHorizontalWheelEnabler

Afficher le fichier Open project: icsharpcode/WpfDesigner

Méthodes publiques

Свойство Type Description
AutoEnableMouseHorizontalWheelSupport bool
MouseHorizontalWheelEvent System.Windows.RoutedEvent
PreviewMouseHorizontalWheelEvent System.Windows.RoutedEvent

Méthodes publiques

Méthode Description
AddMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
AddPreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
DisableMouseHorizontalWheelSupport ( System.Windows.Controls.ContextMenu contextMenu ) : bool

Disable Horizontal Wheel support for all the controls inside the context menu. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.

DisableMouseHorizontalWheelSupport ( IntPtr handle ) : bool

Disable Horizontal Wheel support for all the controls inside the HWND. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.

DisableMouseHorizontalWheelSupport ( System.Windows.Controls.Primitives.Popup popup ) : bool

Disable Horizontal Wheel support for all the controls inside the popup. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.

DisableMouseHorizontalWheelSupport ( Window window ) : bool

Disable Horizontal Wheel support for all the controls inside the window. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.

EnableMouseHorizontalWheelSupport ( IntPtr handle ) : bool

Enable Horizontal Wheel support for all the controls inside the HWND. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or sub-context menus. If it was already enabled it will do nothing.

EnableMouseHorizontalWheelSupport ( System.Windows.Controls.ContextMenu contextMenu ) : void

Enable Horizontal Wheel support for all the controls inside the context menu. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or sub-context menus. If it was already enabled it will do nothing.

EnableMouseHorizontalWheelSupport ( System.Windows.Controls.Primitives.Popup popup ) : void

Enable Horizontal Wheel support for all the controls inside the popup. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include sub-popups or context menus. If it was already enabled it will do nothing.

EnableMouseHorizontalWheelSupport ( Window window ) : void

Enable Horizontal Wheel support for all the controls inside the window. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or context menus. If it was already enabled it will do nothing.

EnableMouseHorizontalWheelSupportForParentOf ( UIElement uiElement ) : void

Enable Horizontal Wheel support for all that control and all controls hosted by the same window/popup/context menu. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. If it was already enabled it will do nothing.

RemoveMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
RemovePreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void

Private Methods

Méthode Description
GetObjectParentHandle ( DependencyObject depObj ) : IntPtr?
HandleMouseHorizontalWheel ( IntPtr wParam ) : void
PresenationSourceChangedHandler ( object sender, System.Windows.SourceChangedEventArgs sourceChangedEventArgs ) : void
WndProcHook ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Method Details

AddMouseHorizontalWheelHandler() public static méthode

public static AddMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Résultat void

AddPreviewMouseHorizontalWheelHandler() public static méthode

public static AddPreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Résultat void

DisableMouseHorizontalWheelSupport() public static méthode

Disable Horizontal Wheel support for all the controls inside the context menu. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
public static DisableMouseHorizontalWheelSupport ( System.Windows.Controls.ContextMenu contextMenu ) : bool
contextMenu System.Windows.Controls.ContextMenu Context menu to disable support for.
Résultat bool

DisableMouseHorizontalWheelSupport() public static méthode

Disable Horizontal Wheel support for all the controls inside the HWND. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
public static DisableMouseHorizontalWheelSupport ( IntPtr handle ) : bool
handle System.IntPtr HWND handle to disable support for.
Résultat bool

DisableMouseHorizontalWheelSupport() public static méthode

Disable Horizontal Wheel support for all the controls inside the popup. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
public static DisableMouseHorizontalWheelSupport ( System.Windows.Controls.Primitives.Popup popup ) : bool
popup System.Windows.Controls.Primitives.Popup Popup to disable support for.
Résultat bool

DisableMouseHorizontalWheelSupport() public static méthode

Disable Horizontal Wheel support for all the controls inside the window. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
public static DisableMouseHorizontalWheelSupport ( Window window ) : bool
window System.Windows.Window Window to disable support for.
Résultat bool

EnableMouseHorizontalWheelSupport() public static méthode

Enable Horizontal Wheel support for all the controls inside the HWND. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or sub-context menus. If it was already enabled it will do nothing.
public static EnableMouseHorizontalWheelSupport ( IntPtr handle ) : bool
handle System.IntPtr HWND handle to enable support for.
Résultat bool

EnableMouseHorizontalWheelSupport() public static méthode

Enable Horizontal Wheel support for all the controls inside the context menu. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or sub-context menus. If it was already enabled it will do nothing.
public static EnableMouseHorizontalWheelSupport ( System.Windows.Controls.ContextMenu contextMenu ) : void
contextMenu System.Windows.Controls.ContextMenu Context menu to enable support for.
Résultat void

EnableMouseHorizontalWheelSupport() public static méthode

Enable Horizontal Wheel support for all the controls inside the popup. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include sub-popups or context menus. If it was already enabled it will do nothing.
public static EnableMouseHorizontalWheelSupport ( System.Windows.Controls.Primitives.Popup popup ) : void
popup System.Windows.Controls.Primitives.Popup Popup to enable support for.
Résultat void

EnableMouseHorizontalWheelSupport() public static méthode

Enable Horizontal Wheel support for all the controls inside the window. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. This does not include popups or context menus. If it was already enabled it will do nothing.
public static EnableMouseHorizontalWheelSupport ( Window window ) : void
window System.Windows.Window Window to enable support for.
Résultat void

EnableMouseHorizontalWheelSupportForParentOf() public static méthode

Enable Horizontal Wheel support for all that control and all controls hosted by the same window/popup/context menu. This method does not need to be called if AutoEnableMouseHorizontalWheelSupport is true. If it was already enabled it will do nothing.
public static EnableMouseHorizontalWheelSupportForParentOf ( UIElement uiElement ) : void
uiElement UIElement UI Element to enable support for.
Résultat void

RemoveMouseHorizontalWheelHandler() public static méthode

public static RemoveMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Résultat void

RemovePreviewMouseHorizontalWheelHandler() public static méthode

public static RemovePreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Résultat void

Property Details

AutoEnableMouseHorizontalWheelSupport public_oe static_oe property

When true it will try to enable Horizontal Wheel support on parent windows/popups/context menus automatically so the programmer does not need to call it. Defaults to true.
public static bool AutoEnableMouseHorizontalWheelSupport
Résultat bool

MouseHorizontalWheelEvent public_oe static_oe property

public static RoutedEvent,System.Windows MouseHorizontalWheelEvent
Résultat System.Windows.RoutedEvent

PreviewMouseHorizontalWheelEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewMouseHorizontalWheelEvent
Résultat System.Windows.RoutedEvent