wpf-tutorials (wpf_tutorials) wrote,

My own Silverlight textbox

Normally, there is no input control like a textbox available in Silverlight.  You could use a HTML textbox and pass the value to Silverlight, but it would be cooler to create your own textbox and edit the style just like in WPF.

This is possible.  A couple of days ago, I saw a presentation of Silverlight where some controls were developed by a Belgian company called Netika

They showed a little trick to have keyboard input: trigger the KeyDown events and place them in a textblock.  I started to create a tutorial for this and you can download the result below.  The textbox is pretty basic, but of course you can make it look better using Expression Blend 2.0 September Preview and add some nice colors to it.

You can download the tutorial and the entire source code:

  • The PDF tutorial ( 399 KB )
  • The source code ( 26 KB )
  • Tags: silverlight, xaml

    • interaction between HTML and Silverlight

      As promised in my previous post, this is a tutorial for the second demo ( Xaml and javascript ) of the Silverlight workshop. The demo creates a…

    • Silverlight workshop for PlugMedia

      Yesterday, we did a Silverlight workshop for PlugMedia. As promised at the end of the session, you can download the presentation ( dutch ) and all…

    • Control animations from code behind

      In this tutorial, I've created an animation ( storyboard ) with Expression Blend, and I will adjust some properties of the animation in C#. This…

    • Post a new comment


      default userpic
      When you submit the form an invisible reCAPTCHA check will be performed.
      You must follow the Privacy Policy and Google Terms of use.