(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Silverlight Click to Edit TextBlock

(0 votes)
0 comments   /   posted by Silverlight Show on Jan 11, 2012
Tags:   textblock , josh-eastburn

Read original post by Josh Eastburn at Falafel Software

There are some powerful data editing controls in Silverlight such as the DataForm which let you define templates for ReadOnly and Edit modes, but sometimes you just need a simple way to view and update text. I came across a scenario in a custom application that required a simple way to view and edit text. The solution I came up with was a "Click to Edit" TextBlock. In the default state, the text is displayed as a read-only TextBlock, but you can simply click on the TextBlock for it to become an editable TextBox.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter