Vectorlight News

  • Chat App Converted to HTML and JQuery
    Sep 08, 2011

    Converted from Silverlight to HTML and Javascript/JQuery is the Vectorlight Chat App. Login using your Vectorlight password to chat using your username and avatar.

  • HTML5 iPhone,Android Big Guns Tower Defense
    Jul 02, 2011

    Big Guns has made the leap from Windows Phone 7 (XNA) to HTML5 so you can now play it on your iPhone, Android and other HTML5 compatible devices.

  • HTML5 Games - Word Poppers and Batty
    Jun 04, 2011

    As the take-up of HTML5 quickens (74% of users currently have a browser capable of HTML5 Canvas) we present two more games for both your browser and mobile.

  • Big Guns Tower Defense on Windows Phone 7
    May 06, 2011

    Coming soon to Windows Phone 7 is an XNA port of the popular Vectorlight tower defense game Super Tower Defense. Whilst retaining many of the graphical and gameplay features of the original Silverlight game.

  • Wakacube WP7 Update
    Apr 26, 2011

    Released to the Windows Phone 7 marketplace today is Version 1.1 of Wakacube the 3D physics game of skill. Included in the update are more levels (30 in total) and new mode Wakatime which generates random crate structures to keep players entertained long after the levels have been completed.

  • Home Page News
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: 

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