C# 클래스 MahApps.Metro.Controls.TextBoxHelper

A helper class that provides various attached properties for the TextBox control.
Password watermarking code from: http://prabu-guru.blogspot.com/2010/06/how-to-add-watermark-text-to-textbox.html
파일 보기 프로젝트 열기: OfficeDev/Office-IT-Pro-Deployment-Scripts 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ButtonCommandParameterProperty System.Windows.DependencyProperty
ButtonCommandProperty System.Windows.DependencyProperty
ButtonContentProperty System.Windows.DependencyProperty
ButtonFontFamilyProperty System.Windows.DependencyProperty
ButtonTemplateProperty System.Windows.DependencyProperty
ButtonsAlignmentProperty System.Windows.DependencyProperty
ClearTextButtonProperty System.Windows.DependencyProperty
IsClearTextButtonBehaviorEnabledProperty System.Windows.DependencyProperty
IsMonitoringProperty System.Windows.DependencyProperty
IsWaitingForDataProperty System.Windows.DependencyProperty
SelectAllOnFocusProperty System.Windows.DependencyProperty
TextLengthProperty System.Windows.DependencyProperty
UseFloatingWatermarkProperty DependencyProperty
WatermarkProperty DependencyProperty

공개 메소드들

메소드 설명
ButtonClicked ( object sender, RoutedEventArgs e ) : void
GetButtonCommand ( DependencyObject d ) : ICommand
GetButtonCommandParameter ( DependencyObject d ) : object
GetButtonContent ( DependencyObject d ) : object
GetButtonFontFamily ( DependencyObject d ) : FontFamily
GetButtonTemplate ( DependencyObject d ) : System.Windows.Controls.ControlTemplate
GetButtonsAlignment ( DependencyObject d ) : ButtonsAlignment

Gets the buttons placement variant.

GetClearTextButton ( DependencyObject d ) : bool
GetHasText ( DependencyObject obj ) : bool

Gets if the attached TextBox has text.

GetIsWaitingForData ( DependencyObject obj ) : bool
GetSelectAllOnFocus ( DependencyObject obj ) : bool
GetUseFloatingWatermark ( DependencyObject obj ) : bool
GetWatermark ( DependencyObject obj ) : string
SetButtonCommand ( DependencyObject obj, ICommand value ) : void
SetButtonCommandParameter ( DependencyObject obj, object value ) : void
SetButtonContent ( DependencyObject obj, object value ) : void
SetButtonFontFamily ( DependencyObject obj, FontFamily value ) : void
SetButtonTemplate ( DependencyObject obj, System.Windows.Controls.ControlTemplate value ) : void
SetButtonsAlignment ( DependencyObject obj, ButtonsAlignment value ) : void

Sets the buttons placement variant.

SetClearTextButton ( DependencyObject obj, bool value ) : void
SetHasText ( DependencyObject obj, bool value ) : void
SetIsMonitoring ( DependencyObject obj, bool value ) : void
SetIsWaitingForData ( DependencyObject obj, bool value ) : void
SetSelectAllOnFocus ( DependencyObject obj, bool value ) : void
SetUseFloatingWatermark ( DependencyObject obj, bool value ) : void
SetWatermark ( DependencyObject obj, string value ) : void

비공개 메소드들

메소드 설명
ButtonCommandOrClearTextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ComboBoxLoaded ( object sender, RoutedEventArgs e ) : void
GetDefaultTextBoxBaseContextMenu ( ) : System.Windows.Controls.ContextMenu
GetIsClearTextButtonBehaviorEnabled ( System.Windows.Controls.Button d ) : bool
GetIsSpellCheckContextMenuEnabled ( UIElement element ) : bool
IsClearTextButtonBehaviorEnabledChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsMonitoringChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PassBoxLoaded ( object sender, RoutedEventArgs e ) : void
PasswordChanged ( object sender, RoutedEventArgs e ) : void
PasswordGotFocus ( object sender, RoutedEventArgs e ) : void
SetIsClearTextButtonBehaviorEnabled ( System.Windows.Controls.Button obj, bool value ) : void
SetIsSpellCheckContextMenuEnabled ( UIElement element, bool value ) : void
SetTextLength ( DependencyObject obj, int value ) : void
TextBoxBaseContextMenuOpening ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void
TextBoxGotFocus ( object sender, RoutedEventArgs e ) : void
TextBoxLoaded ( object sender, RoutedEventArgs e ) : void
TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
UseSpellCheckContextMenuChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

메소드 상세

ButtonClicked() 공개 정적인 메소드

public static ButtonClicked ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
리턴 void

GetButtonCommand() 공개 정적인 메소드

public static GetButtonCommand ( DependencyObject d ) : ICommand
d System.Windows.DependencyObject
리턴 ICommand

GetButtonCommandParameter() 공개 정적인 메소드

public static GetButtonCommandParameter ( DependencyObject d ) : object
d System.Windows.DependencyObject
리턴 object

GetButtonContent() 공개 정적인 메소드

public static GetButtonContent ( DependencyObject d ) : object
d System.Windows.DependencyObject
리턴 object

GetButtonFontFamily() 공개 정적인 메소드

public static GetButtonFontFamily ( DependencyObject d ) : FontFamily
d System.Windows.DependencyObject
리턴 FontFamily

GetButtonTemplate() 공개 정적인 메소드

public static GetButtonTemplate ( DependencyObject d ) : System.Windows.Controls.ControlTemplate
d System.Windows.DependencyObject
리턴 System.Windows.Controls.ControlTemplate

GetButtonsAlignment() 공개 정적인 메소드

Gets the buttons placement variant.
public static GetButtonsAlignment ( DependencyObject d ) : ButtonsAlignment
d System.Windows.DependencyObject
리턴 ButtonsAlignment

GetClearTextButton() 공개 정적인 메소드

public static GetClearTextButton ( DependencyObject d ) : bool
d System.Windows.DependencyObject
리턴 bool

GetHasText() 공개 정적인 메소드

Gets if the attached TextBox has text.
public static GetHasText ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
리턴 bool

GetIsWaitingForData() 공개 정적인 메소드

public static GetIsWaitingForData ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
리턴 bool

GetSelectAllOnFocus() 공개 정적인 메소드

public static GetSelectAllOnFocus ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
리턴 bool

GetUseFloatingWatermark() 공개 정적인 메소드

public static GetUseFloatingWatermark ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
리턴 bool

GetWatermark() 공개 정적인 메소드

public static GetWatermark ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
리턴 string

SetButtonCommand() 공개 정적인 메소드

public static SetButtonCommand ( DependencyObject obj, ICommand value ) : void
obj System.Windows.DependencyObject
value ICommand
리턴 void

SetButtonCommandParameter() 공개 정적인 메소드

public static SetButtonCommandParameter ( DependencyObject obj, object value ) : void
obj System.Windows.DependencyObject
value object
리턴 void

SetButtonContent() 공개 정적인 메소드

public static SetButtonContent ( DependencyObject obj, object value ) : void
obj System.Windows.DependencyObject
value object
리턴 void

SetButtonFontFamily() 공개 정적인 메소드

public static SetButtonFontFamily ( DependencyObject obj, FontFamily value ) : void
obj System.Windows.DependencyObject
value FontFamily
리턴 void

SetButtonTemplate() 공개 정적인 메소드

public static SetButtonTemplate ( DependencyObject obj, System.Windows.Controls.ControlTemplate value ) : void
obj System.Windows.DependencyObject
value System.Windows.Controls.ControlTemplate
리턴 void

SetButtonsAlignment() 공개 정적인 메소드

Sets the buttons placement variant.
public static SetButtonsAlignment ( DependencyObject obj, ButtonsAlignment value ) : void
obj System.Windows.DependencyObject
value ButtonsAlignment
리턴 void

SetClearTextButton() 공개 정적인 메소드

public static SetClearTextButton ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetHasText() 공개 정적인 메소드

public static SetHasText ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetIsMonitoring() 공개 정적인 메소드

public static SetIsMonitoring ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetIsWaitingForData() 공개 정적인 메소드

public static SetIsWaitingForData ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetSelectAllOnFocus() 공개 정적인 메소드

public static SetSelectAllOnFocus ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetUseFloatingWatermark() 공개 정적인 메소드

public static SetUseFloatingWatermark ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
리턴 void

SetWatermark() 공개 정적인 메소드

public static SetWatermark ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
리턴 void

프로퍼티 상세

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

public static DependencyProperty,System.Windows ButtonCommandParameterProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ButtonCommandProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ButtonContentProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ButtonFontFamilyProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ButtonTemplateProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ButtonsAlignmentProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ClearTextButtonProperty
리턴 System.Windows.DependencyProperty

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

The clear text button behavior property. It sets a click event to the button if the value is true.
public static DependencyProperty,System.Windows IsClearTextButtonBehaviorEnabledProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows IsMonitoringProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows IsWaitingForDataProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows SelectAllOnFocusProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows TextLengthProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty UseFloatingWatermarkProperty
리턴 DependencyProperty

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

public static DependencyProperty WatermarkProperty
리턴 DependencyProperty