Class: TextBox

Namespace: System.Windows.Controls

Library: PresentationFramework

Some properties:

AcceptsReturn Setting to true causes a new line to be inserted when the RETURN key is pressed.

Background

The value will be a color.

BorderBrush

Also a color.

BorderThickness

FontFamily

FontSize

FontStyle

FontWeight

Foreground

The color of the text.

Height

HorizontalScrollBarVisibility

There are some values:

IsReadOnly

Margin

Name

Opacity

Text

Very important. Gets or sets the text contents of the TextBox.

TextWrapping

There are some option:

VerticalScrollBarVisibility

Visibility

Width

Some methods:

Clear()

Clears all the content from the TextBox.

Focus()

ScrollToEnd()

Scrolls the contents of the editing control to the end of the content.

ScrollToHome()

Scrolls the contents of the editing control to the beginning of the content.

Some events. To be overrided.

TextChanged

KeyDown

KeyUp

And the usual mouse events:


  MouseDoubleClick    
  MouseDown    
  MouseEnter    
  MouseLeave    
  MouseLeftButtonDown    
  MouseLeftButtonUp    
  MouseMove    
  MouseRightButtonDown   
  MouseRightButtonUp    
  MouseUp    
   



PREVIOUS LESSON NEXT LESSON
T.CONTENTS HOMEPAGE