C# Класс ICSharpCode.WpfDesign.UIExtensions.MouseHorizontalWheelEnabler

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AutoEnableMouseHorizontalWheelSupport bool
MouseHorizontalWheelEvent System.Windows.RoutedEvent
PreviewMouseHorizontalWheelEvent System.Windows.RoutedEvent

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddMouseHorizontalWheelHandler() публичный статический Метод

public static AddMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Результат void

AddPreviewMouseHorizontalWheelHandler() публичный статический Метод

public static AddPreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Результат void

DisableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат bool

DisableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат bool

DisableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат bool

DisableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат bool

EnableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат bool

EnableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат void

EnableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат void

EnableMouseHorizontalWheelSupport() публичный статический Метод

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.
Результат void

EnableMouseHorizontalWheelSupportForParentOf() публичный статический Метод

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.
Результат void

RemoveMouseHorizontalWheelHandler() публичный статический Метод

public static RemoveMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Результат void

RemovePreviewMouseHorizontalWheelHandler() публичный статический Метод

public static RemovePreviewMouseHorizontalWheelHandler ( DependencyObject d, RoutedEventHandler handler ) : void
d System.Windows.DependencyObject
handler RoutedEventHandler
Результат void

Описание свойств

AutoEnableMouseHorizontalWheelSupport публичное статическое свойство

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
Результат bool

MouseHorizontalWheelEvent публичное статическое свойство

public static RoutedEvent,System.Windows MouseHorizontalWheelEvent
Результат System.Windows.RoutedEvent

PreviewMouseHorizontalWheelEvent публичное статическое свойство

public static RoutedEvent,System.Windows PreviewMouseHorizontalWheelEvent
Результат System.Windows.RoutedEvent