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

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

공개 프로퍼티들

프로퍼티 타입 설명
ActionIconProperty System.Windows.DependencyProperty
ActualHintVisibilityProperty System.Windows.DependencyProperty
DisplayedMaxLengthProperty System.Windows.DependencyProperty
HidesActionItemWhenEmptyProperty System.Windows.DependencyProperty
HintProperty System.Windows.DependencyProperty
HintStyleProperty System.Windows.DependencyProperty
LengthIndicatorThresholdProperty System.Windows.DependencyProperty
LengthIndicatorVisibleProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Applies the template and checks to see if the Hint should be shown when the page is first loaded.

PhoneTextBox ( ) : System

Initializes a new instance of the PhoneTextBox class.

보호된 메소드들

메소드 설명
OnGotFocus ( RoutedEventArgs e ) : void

Override the Focus event to hide the Hint.

OnLostFocus ( RoutedEventArgs e ) : void

Override the Blur/LostFocus event to show the Hint if needed.

비공개 메소드들

메소드 설명
DisplayedMaxLengthChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnActionIconChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnActionIconTapped ( object sender, RoutedEventArgs e ) : void

Determines if the developer set an event for ActionIconTapped.

OnHintPropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void

When the Hint is changed, check if it needs to be hidden or shown.

OnLengthIndicatorThresholdChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnTextChanged ( object sender, RoutedEventArgs e ) : void

Called when the selection changed event occurs. This determines whether the length indicator should be shown or not and if the TextBox needs to grow.

ResizeTextBox ( ) : void
UpdateActionIconVisibility ( ) : void
UpdateHintVisibility ( ) : void

Determines if the Hint should be shown or not based on if there is content in the TextBox.

UpdateLengthIndicatorVisibility ( ) : void

메소드 상세

OnApplyTemplate() 공개 메소드

Applies the template and checks to see if the Hint should be shown when the page is first loaded.
public OnApplyTemplate ( ) : void
리턴 void

OnGotFocus() 보호된 메소드

Override the Focus event to hide the Hint.
protected OnGotFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs Event arguments.
리턴 void

OnLostFocus() 보호된 메소드

Override the Blur/LostFocus event to show the Hint if needed.
protected OnLostFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs Event arguments.
리턴 void

PhoneTextBox() 공개 메소드

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

프로퍼티 상세

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

Identifies the ActionIcon DependencyProperty.
public static DependencyProperty,System.Windows ActionIconProperty
리턴 System.Windows.DependencyProperty

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

Identifies the HintVisibility DependencyProperty
public static DependencyProperty,System.Windows ActualHintVisibilityProperty
리턴 System.Windows.DependencyProperty

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

The displayed maximum length of text that can be entered. This value takes priority over the MaxLength property in the Length Indicator display.
public static DependencyProperty,System.Windows DisplayedMaxLengthProperty
리턴 System.Windows.DependencyProperty

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

Identifies the HidesActionItemWhenEmpty DependencyProperty.
public static DependencyProperty,System.Windows HidesActionItemWhenEmptyProperty
리턴 System.Windows.DependencyProperty

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

Identifies the Hint DependencyProperty.
public static DependencyProperty,System.Windows HintProperty
리턴 System.Windows.DependencyProperty

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

Identifies the HintStyle DependencyProperty.
public static DependencyProperty,System.Windows HintStyleProperty
리턴 System.Windows.DependencyProperty

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

Length Indicator Visibility Threshold Dependency Property.
public static DependencyProperty,System.Windows LengthIndicatorThresholdProperty
리턴 System.Windows.DependencyProperty

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

Length Indicator Visibile Dependency Property.
public static DependencyProperty,System.Windows LengthIndicatorVisibleProperty
리턴 System.Windows.DependencyProperty