C# Класс Microsoft.Phone.Controls.PhoneTextBox

Наследование: System.Windows.Controls.TextBox
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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