C# 클래스 WinRTXamlToolkit.Controls.Primitives.CalendarButton

상속: Windows.UI.Xaml.Controls.Button
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ChangeVisualState void
OnLoad void
SendPointerReleased void

공개 메소드들

메소드 설명
CalendarButton ( ) : System

Initializes a new instance of the T:WinRTXamlToolkit.Controls.Primitives.CalendarButton class.

보호된 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Builds the visual tree for the T:WinRTXamlToolkit.Controls.Primitives.CalendarButton when a new template is applied.

OnCreateAutomationPeer ( ) : AutomationPeer

Returns a CalendarButtonAutomationPeer for use by the Silverlight automation infrastructure.

This method creates a new CalendarButtonAutomationPeer instance if one has not been created for the CalendarButton; otherwise, it returns the CalendarButtonAutomationPeer previously created.

Classes that participate in the Silverlight automation infrastructure must implement this method to return a class-specific derived class of AutomationPeer that reports information for automation behavior.

OnPointerPressed ( global e ) : void

Provides class handling for the MouseLeftButtonDown event that occurs when the left mouse button is pressed while the mouse pointer is over this control.

This method marks the MouseLeftButtonDown event as handled by setting the PointerRoutedEventArgs.Handled property of the event data to true when the button is enabled and its ClickMode is not set to Hover. Since this method marks the MouseLeftButtonDown event as handled in some situations, you should use the Click event instead to detect a button click.

OnPointerReleased ( PointerRoutedEventArgs e ) : void

Provides handling for the PointerReleased event that occurs when the left mouse button is released while the mouse pointer is over this control.

This method marks the PointerReleased event as handled by setting the PointerRoutedEventArgs.Handled property of the event data to true when the button is enabled and its ClickMode is not set to Hover. Since this method marks the PointerReleased event as handled in some situations, you should use the Click event instead to detect a button click.

비공개 메소드들

메소드 설명
ChangeVisualState ( bool useTransitions ) : void

Change to the correct visual state for the button.

OnLoad ( object sender, RoutedEventArgs e ) : void

Handle the Loaded event.

SendPointerReleased ( PointerRoutedEventArgs e ) : void

We need to simulate the PointerReleased event for the CalendarButton that stays in Pressed state after MouseCapture is released since there is no actual PointerReleased event for the release.

메소드 상세

CalendarButton() 공개 메소드

Initializes a new instance of the T:WinRTXamlToolkit.Controls.Primitives.CalendarButton class.
public CalendarButton ( ) : System
리턴 System

OnApplyTemplate() 보호된 메소드

Builds the visual tree for the T:WinRTXamlToolkit.Controls.Primitives.CalendarButton when a new template is applied.
protected OnApplyTemplate ( ) : void
리턴 void

OnCreateAutomationPeer() 보호된 메소드

Returns a CalendarButtonAutomationPeer for use by the Silverlight automation infrastructure.

This method creates a new CalendarButtonAutomationPeer instance if one has not been created for the CalendarButton; otherwise, it returns the CalendarButtonAutomationPeer previously created.

Classes that participate in the Silverlight automation infrastructure must implement this method to return a class-specific derived class of AutomationPeer that reports information for automation behavior.

protected OnCreateAutomationPeer ( ) : AutomationPeer
리턴 Windows.UI.Xaml.Automation.Peers.AutomationPeer

OnPointerPressed() 보호된 메소드

Provides class handling for the MouseLeftButtonDown event that occurs when the left mouse button is pressed while the mouse pointer is over this control.
This method marks the MouseLeftButtonDown event as handled by setting the PointerRoutedEventArgs.Handled property of the event data to true when the button is enabled and its ClickMode is not set to Hover. Since this method marks the MouseLeftButtonDown event as handled in some situations, you should use the Click event instead to detect a button click.
/// e is a null reference (Nothing in Visual Basic). ///
protected OnPointerPressed ( global e ) : void
e global The event data.
리턴 void

OnPointerReleased() 보호된 메소드

Provides handling for the PointerReleased event that occurs when the left mouse button is released while the mouse pointer is over this control.
This method marks the PointerReleased event as handled by setting the PointerRoutedEventArgs.Handled property of the event data to true when the button is enabled and its ClickMode is not set to Hover. Since this method marks the PointerReleased event as handled in some situations, you should use the Click event instead to detect a button click.
/// e is a null reference (Nothing in Visual Basic). ///
protected OnPointerReleased ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs The event data.
리턴 void