Is there any difference between WPF TextBlock and TextBox? -


what criteria must consider when selecting 1 of these 2 controls?

common both textblocks , textboxes:

  • can used display text
  • can set specific height , width or set auto grow in size text.
  • can set font size, font type, font styling, wrap , range left, right or centred.
  • can have opacity set , have pixel shaders applied.

textblock:

  • used displaying text more focused typographically.
  • can contain text set different colors, fonts , sizes.
  • the line height can increased default setting give more space between each line of text.
  • text inside textblock cannot made selectable user.

textbox:

  • used displaying text more focused content input or when content needed made selectable user.
  • can set 1 colour, 1 font size, 1 font type etc.
  • have fixed line spacing.
  • can set fixed height , width have scrollbars switched on allow content expand.

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -