C# 클래스 Microsoft.Phone.Controls.CustomMessageBox

상속: System.Windows.Controls.ContentControl
파일 보기 프로젝트 열기: Kinnara/WPToolkit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CaptionProperty System.Windows.DependencyProperty
IsFullScreenProperty System.Windows.DependencyProperty
IsLeftButtonEnabledProperty System.Windows.DependencyProperty
IsRightButtonEnabledProperty System.Windows.DependencyProperty
LeftButtonContentProperty System.Windows.DependencyProperty
MessageProperty System.Windows.DependencyProperty
RightButtonContentProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
CustomMessageBox ( ) : System

Initializes a new instance of the CustomMessageBox class.

Dismiss ( ) : void

Dismisses the message box.

OnApplyTemplate ( ) : void

Gets the template parts and attaches event handlers. Animates the message box when the template is applied to it.

Show ( ) : void

Reveals the message box by inserting it into a popup and opening it.

비공개 메소드들

메소드 설명
ClosePopup ( bool restoreOriginalValues ) : void

Closes the pop up.

CustomMessageBox_LayoutUpdated ( object sender, EventArgs e ) : void

Called when the visual layout changes.

Dismiss ( CustomMessageBoxResult source, bool useTransition ) : void

Dismisses the message box.

GetPageOrientation ( ) : PageOrientation

Gets the current page orientation.

GetTransform ( ) : Transform

Gets a transform for popup elements based on the current page orientation.

GetTransformedRect ( ) : Rect

Gets a rectangle that occupies the entire page.

GetVisibilityFromObject ( Object obj ) : Visibility

Returns a visibility value based on the value of an object.

GetVisibilityFromString ( string str ) : Visibility

Returns a visibility value based on the value of a string.

IsLandscape ( PageOrientation orientation ) : bool

Determines whether the orientation is landscape.

LeftButton_Click ( object sender, RoutedEventArgs e ) : void

Dismisses the message box with the left button.

OnBackKeyPress ( object sender, System e ) : void

Called when the back key is pressed. This event handler cancels the backward navigation and dismisses the message box.

OnCaptionPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the visibility of the caption text block based on its content.

OnIsFullScreenPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Modifies the vertical alignment of the message box depending on whether it should occupy the full screen or not.

OnLeftButtonContentPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the visibility of the left button based on its content.

OnMessagePropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the visibility of the message text block based on its content.

OnNavigating ( object sender, System e ) : void

Called when the application frame is navigating. This event handler dismisses the message box.

OnOrientationChanged ( object sender, OrientationChangedEventArgs e ) : void

Called when the current page changes orientation.

OnRightButtonContentPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the visibility of the right button based on its content.

OnTitlePropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the visibility of the title text block based on its content.

RightButton_Click ( object sender, RoutedEventArgs e ) : void

Dismisses the message box with the right button.

SetSizeAndOffset ( ) : void

Sets The vertical and horizontal offset of the popup, as well as the size of its child container.

메소드 상세

CustomMessageBox() 공개 메소드

Initializes a new instance of the CustomMessageBox class.
public CustomMessageBox ( ) : System
리턴 System

Dismiss() 공개 메소드

Dismisses the message box.
public Dismiss ( ) : void
리턴 void

OnApplyTemplate() 공개 메소드

Gets the template parts and attaches event handlers. Animates the message box when the template is applied to it.
public OnApplyTemplate ( ) : void
리턴 void

Show() 공개 메소드

Reveals the message box by inserting it into a popup and opening it.
public Show ( ) : void
리턴 void

프로퍼티 상세

CaptionProperty 공개적으로 정적으로 프로퍼티

Identifies the Caption dependency property.
public static DependencyProperty,System.Windows CaptionProperty
리턴 System.Windows.DependencyProperty

IsFullScreenProperty 공개적으로 정적으로 프로퍼티

Identifies the IsFullScreen dependency property.
public static DependencyProperty,System.Windows IsFullScreenProperty
리턴 System.Windows.DependencyProperty

IsLeftButtonEnabledProperty 공개적으로 정적으로 프로퍼티

Identifies the IsLeftButtonEnabled dependency property.
public static DependencyProperty,System.Windows IsLeftButtonEnabledProperty
리턴 System.Windows.DependencyProperty

IsRightButtonEnabledProperty 공개적으로 정적으로 프로퍼티

Identifies the IsRightButtonEnabled dependency property.
public static DependencyProperty,System.Windows IsRightButtonEnabledProperty
리턴 System.Windows.DependencyProperty

LeftButtonContentProperty 공개적으로 정적으로 프로퍼티

Identifies the LeftButtonContent dependency property.
public static DependencyProperty,System.Windows LeftButtonContentProperty
리턴 System.Windows.DependencyProperty

MessageProperty 공개적으로 정적으로 프로퍼티

Identifies the Message dependency property.
public static DependencyProperty,System.Windows MessageProperty
리턴 System.Windows.DependencyProperty

RightButtonContentProperty 공개적으로 정적으로 프로퍼티

Identifies the RightButtonContent dependency property.
public static DependencyProperty,System.Windows RightButtonContentProperty
리턴 System.Windows.DependencyProperty

TitleProperty 공개적으로 정적으로 프로퍼티

Identifies the Title dependency property.
public static DependencyProperty,System.Windows TitleProperty
리턴 System.Windows.DependencyProperty