Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Custom WPF TextBox Style

0.00/5 (No votes)
28 Dec 2010 2  
TextBox Style which resembles the Twitter's text field.
Download TwitterTextBox for WPF Demo and Source Code



View Image



Introduction



This tip was written to demonstrate how to customize the rendering of the standard TextBox control provided by Microsoft. You can use this custom style to achieve the Twitter's TextBox look and feel.

Using the Style



To make use of the custom Style you need to set the Style property of your TextBox controls.

The example code below demonstrates how to apply the style:

<TextBox Style="{StaticResource TwitterTextBoxStyle}" Height="25" Name="textBox1" Width="300" />


Points of Interest



I have made this TextBox Style as part of my university project. I wanted to add to my application some cool glow effects and animations.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here