이 페이지가 유용했습니까?
이 콘텐츠에 대한 여러분의 의견은 중요합니다. 의견을 알려주십시오.
추가 의견
1500자 남음
PreviewMouseDown 이벤트
Collapse the table of content
Expand the table of content

UIElement.PreviewMouseDown 이벤트

Occurs when any mouse button is pressed while the pointer is over this element.

네임스페이스: System.Windows
어셈블리: PresentationCore(presentationcore.dll)
XML 네임스페이스:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public event MouseButtonEventHandler PreviewMouseDown
/** @event */
public void add_PreviewMouseDown (MouseButtonEventHandler value)

/** @event */
public void remove_PreviewMouseDown (MouseButtonEventHandler value)

JScript에서는 클래스에서 정의한 이벤트를 처리할 수 있지만 이벤트를 직접 정의할 수는 없습니다.
<object PreviewMouseDown="MouseButtonEventHandler" .../>

Identifier field

PreviewMouseDownEvent

Routing strategy

Tunneling

Delegate

MouseButtonEventHandler

  • The corresponding bubbling event is MouseDown.

  • Override OnPreviewMouseDown to implement class handling for this event in derived classes.

This event creates an alias for the Mouse.PreviewMouseDown attached event for this class, so that PreviewMouseDown is part of the class members list when UIElement is inherited as a base element. Event handlers that are attached to the PreviewMouseDown event are attached to the underlying Mouse.PreviewMouseDown attached event and receive the same event data instance.

The PreviewMouseDown event is often raised together with either PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown, which correspond to a press of one of the two standard mouse buttons. PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown are also routed events, but they are direct routed events, and the appropriate button-specific event is raised when the Mouse.PreviewMouseDown event reaches this element along the event route. See Remarks for PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원

커뮤니티 추가 항목

추가
표시:
© 2015 Microsoft