C# Class ICSharpCode.WpfDesign.UIExtensions.MouseHorizontalWheelEnabler

Exibir arquivo Open project: icsharpcode/WpfDesigner

Public Properties

Property Type Description
AutoEnableMouseHorizontalWheelSupport bool
MouseHorizontalWheelEvent System.Windows.RoutedEvent
PreviewMouseHorizontalWheelEvent System.Windows.RoutedEvent

Public Methods

Method 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

Method 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 method

public static AddMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
return void

AddPreviewMouseHorizontalWheelHandler() public static method

public static AddPreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
return void

DisableMouseHorizontalWheelSupport() public static method

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.
return bool

DisableMouseHorizontalWheelSupport() public static method

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.
return bool

DisableMouseHorizontalWheelSupport() public static method

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.
return bool

DisableMouseHorizontalWheelSupport() public static method

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.
return bool

EnableMouseHorizontalWheelSupport() public static method

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.
return bool

EnableMouseHorizontalWheelSupport() public static method

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.
return void

EnableMouseHorizontalWheelSupport() public static method

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.
return void

EnableMouseHorizontalWheelSupport() public static method

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.
return void

EnableMouseHorizontalWheelSupportForParentOf() public static method

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.
return void

RemoveMouseHorizontalWheelHandler() public static method

public static RemoveMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
return void

RemovePreviewMouseHorizontalWheelHandler() public static method

public static RemovePreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
return 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
return bool

MouseHorizontalWheelEvent public_oe static_oe property

public static RoutedEvent,System.Windows MouseHorizontalWheelEvent
return System.Windows.RoutedEvent

PreviewMouseHorizontalWheelEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewMouseHorizontalWheelEvent
return System.Windows.RoutedEvent