C# 클래스 System.Windows.Controls.InteractionHelper

The InteractionHelper provides controls with support for all of the common interactions like mouse movement, mouse clicks, key presses, etc., and also incorporates proper event semantics when the control is disabled.
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OnIsEnabledChanged void
OnIsReadOnlyChanged void
OnLoaded void
UpdateVisualState void

공개 메소드들

메소드 설명
AllowGotFocus ( RoutedEventArgs e ) : bool

Check if the control's GotFocus event should be handled.

AllowKeyDown ( KeyEventArgs e ) : bool

Check if the control's KeyDown event should be handled.

AllowKeyUp ( KeyEventArgs e ) : bool

Check if the control's KeyUp event should be handled.

AllowLostFocus ( RoutedEventArgs e ) : bool

Check if the control's LostFocus event should be handled.

AllowMouseEnter ( MouseEventArgs e ) : bool

Check if the control's MouseEnter event should be handled.

AllowMouseLeave ( MouseEventArgs e ) : bool

Check if the control's MouseLeave event should be handled.

AllowMouseLeftButtonDown ( MouseButtonEventArgs e ) : bool

Check if the control's MouseLeftButtonDown event should be handled.

AllowMouseLeftButtonUp ( MouseButtonEventArgs e ) : bool

Check if the control's MouseLeftButtonUp event should be handled.

InteractionHelper ( Control control ) : System.Diagnostics

Initializes a new instance of the InteractionHelper class.

OnApplyTemplateBase ( ) : void

Update the visual state of the control when its template is changed.

OnGotFocusBase ( ) : void

Base implementation of the virtual GotFocus event handler.

OnLostFocusBase ( ) : void

Base implementation of the virtual LostFocus event handler.

OnMouseEnterBase ( ) : void

Base implementation of the virtual MouseEnter event handler.

OnMouseLeaveBase ( ) : void

Base implementation of the virtual MouseLeave event handler.

OnMouseLeftButtonDownBase ( ) : void

Base implementation of the virtual MouseLeftButtonDown event handler.

OnMouseLeftButtonUpBase ( ) : void

Base implementation of the virtual MouseLeftButtonUp event handler.

UpdateVisualStateBase ( bool useTransitions ) : void

Update the visual state of the control.

비공개 메소드들

메소드 설명
OnIsEnabledChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handle changes to the control's IsEnabled property.

OnIsReadOnlyChanged ( bool value ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void

Handle the control's Loaded event.

UpdateVisualState ( bool useTransitions ) : void

Update the visual state of the control.

UpdateVisualState works differently than the rest of the injected functionality. Most of the other events are overridden by the calling class which calls Allow, does what it wants, and then calls Base. UpdateVisualState is the opposite because a number of the methods in InteractionHelper need to trigger it in the calling class. We do this using the IUpdateVisualState internal interface.

메소드 상세

AllowGotFocus() 공개 메소드

Check if the control's GotFocus event should be handled.
public AllowGotFocus ( RoutedEventArgs e ) : bool
e System.Windows.RoutedEventArgs Event arguments.
리턴 bool

AllowKeyDown() 공개 메소드

Check if the control's KeyDown event should be handled.
public AllowKeyDown ( KeyEventArgs e ) : bool
e KeyEventArgs Event arguments.
리턴 bool

AllowKeyUp() 공개 메소드

Check if the control's KeyUp event should be handled.
public AllowKeyUp ( KeyEventArgs e ) : bool
e KeyEventArgs Event arguments.
리턴 bool

AllowLostFocus() 공개 메소드

Check if the control's LostFocus event should be handled.
public AllowLostFocus ( RoutedEventArgs e ) : bool
e System.Windows.RoutedEventArgs Event arguments.
리턴 bool

AllowMouseEnter() 공개 메소드

Check if the control's MouseEnter event should be handled.
public AllowMouseEnter ( MouseEventArgs e ) : bool
e MouseEventArgs Event arguments.
리턴 bool

AllowMouseLeave() 공개 메소드

Check if the control's MouseLeave event should be handled.
public AllowMouseLeave ( MouseEventArgs e ) : bool
e MouseEventArgs Event arguments.
리턴 bool

AllowMouseLeftButtonDown() 공개 메소드

Check if the control's MouseLeftButtonDown event should be handled.
public AllowMouseLeftButtonDown ( MouseButtonEventArgs e ) : bool
e MouseButtonEventArgs Event arguments.
리턴 bool

AllowMouseLeftButtonUp() 공개 메소드

Check if the control's MouseLeftButtonUp event should be handled.
public AllowMouseLeftButtonUp ( MouseButtonEventArgs e ) : bool
e MouseButtonEventArgs Event arguments.
리턴 bool

InteractionHelper() 공개 메소드

Initializes a new instance of the InteractionHelper class.
public InteractionHelper ( Control control ) : System.Diagnostics
control Control Control receiving interaction.
리턴 System.Diagnostics

OnApplyTemplateBase() 공개 메소드

Update the visual state of the control when its template is changed.
public OnApplyTemplateBase ( ) : void
리턴 void

OnGotFocusBase() 공개 메소드

Base implementation of the virtual GotFocus event handler.
public OnGotFocusBase ( ) : void
리턴 void

OnLostFocusBase() 공개 메소드

Base implementation of the virtual LostFocus event handler.
public OnLostFocusBase ( ) : void
리턴 void

OnMouseEnterBase() 공개 메소드

Base implementation of the virtual MouseEnter event handler.
public OnMouseEnterBase ( ) : void
리턴 void

OnMouseLeaveBase() 공개 메소드

Base implementation of the virtual MouseLeave event handler.
public OnMouseLeaveBase ( ) : void
리턴 void

OnMouseLeftButtonDownBase() 공개 메소드

Base implementation of the virtual MouseLeftButtonDown event handler.
public OnMouseLeftButtonDownBase ( ) : void
리턴 void

OnMouseLeftButtonUpBase() 공개 메소드

Base implementation of the virtual MouseLeftButtonUp event handler.
public OnMouseLeftButtonUpBase ( ) : void
리턴 void

UpdateVisualStateBase() 공개 메소드

Update the visual state of the control.
public UpdateVisualStateBase ( bool useTransitions ) : void
useTransitions bool /// A value indicating whether to automatically generate transitions to /// the new state, or instantly transition to the new state. ///
리턴 void