Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

itlackey
itlackey
RichTextEditor Html Binding Issue Posted: Feb 22, 2010
 

This is really strange and made me think I was crazy for a bit, but I have been able to reproduce it consistently. By default, the RichTextEditor UserControl does not support binding to the HTML property. However, if I modify the code to use a dependency property I can get it to bind. The strange thing is when I begin to type in the control it appears to switch to Right to Left and everything after the first character is typed backwards.


Has anyone experinced this, or even better, been able to get the Html property of RichTextEditor to bind properly.


Thanks!

Ian

 
 
itlackey
itlackey
RE: RichTextEditor Html Binding Issue Posted: Feb 24, 2010
 

It appears that the RichTextBlock also does not work well in a data bound control such as DataForm. The formatting of the HTML becomes scrambled when it is displayed. Does anyone have any idea how to use these controls inside of a DataForm?!?


On the positive side, they appear to work great outside of a data form...


Thanks!

Ian

 
 
itlackey
itlackey
RE: RichTextEditor Html Binding Issue Posted: Feb 24, 2010
 

It turns out the issue I was having with the RichTextBlock in a data form was due to not specifying a height and width for the control. Once I did, it began displaying properly. This is unrelated to the issues with the RichTextEditor.

I was able to eventually use the editor inside of a dataform; however, I had to re-implement the Html property as a DependencyProperty and handle the cancel and commit events manually. It was not a straightforward process, but it is working well enough to satisfy my needs for the moment.

 
 
AndreyGerankin
AndreyGerankin
RE: RichTextEditor Html Binding Issue Posted: May 21, 2010
 

We use Silverlight 3, Liquid 3.5.7. How to bind on HTML property? TwoWay binding doesn't work?

There is work around or not?

 
 
dan
dan
RE: RichTextEditor Html Binding Issue Posted: May 21, 2010
 

Hi,


Two-way binding is not supported at this time.


Thanks!

 
 
rfharmony
rfharmony
RE: RichTextEditor Html Binding Issue Posted: Jun 17, 2010
 

Are there any plans to support two-way binding?  If not, do you have any recommendations on how the RichTextBox control can be used on a data form?


Thanks

 
 
JDanen
JDanen
RE: RichTextEditor Html Binding Issue Posted: Jun 18, 2010
 

Hi Ian - I'm facing the exact same problem, and I'd LOVE to hear how you solved this tedious problem as, to me aswell, it's a pain in the neck.


Thanks a bunch.

 
 
rfharmony
rfharmony
RE: RichTextEditor Html Binding Issue Posted: Jun 20, 2010
 

One thing that I've been able to do is to create my own custom control that wraps RichTextBox.  Then in the custom control, I have my own dependency property that I'm using to bind to the data form.  I then use the RichTextBox LostFocus event to get the content from the RichTextBox and store it into my dependency property (using the Save method).  I'm still testing this but it seems to work.  I tried using the RichTextBox ContentChanged event to get the content but when I use that, it puts the control into the right-to-left input mode for some reason.


One additional item I noticed with this is that the spell check highlighting doesn't work consistently when the text wraps to the next line - mis-spelled words on the next line are not highlighted.  But this seems to be a problem with the normal RichTextBox control as well - I'm still looking into this a bit.

 
 
JDanen
JDanen
RE: RichTextEditor Html Binding Issue Posted: Jul 09, 2010
 

Is your code available anywhere I'd love to have a go with that myself.

 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
3 Ratings / 5.0 Average