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
charnet3d
charnet3d
Exported XML doesn't render the same after importation Posted: Jul 14, 2010
 

Hello Dan,

I found your control really easy and very flexible to use. I needed the export/import functionality in order to save my formatted text in a database, and be able to load it later.


but while experimenting with it, I encountered a bug that is easy to reproduce:


I wrote the following into the RichTextBox:

the first line is centered and contains some text.

the second line is empty

the third and fourth lines contains a bulleted list with 2 items


I save the text into XML, I copy it, I delete everything in the Textbox and then reload this same XML; the result: the first item in the bulleted list appears like if it was centered but it is not, which requires me to disable the bulleted list and reenable to make that line normal. I think this is a problem with the indentation of the bulleted list.


The same thing occurs with numbered lists, and I even reproduced the same bug with the demo you have on the site:

http://www.vectorlight.net/demos/richtextbox.aspx


I would be extremly grateful if you found a solution to this bug and Thank you!!

 
 
charnet3d
charnet3d
RE: Exported XML doesn't render the same after importation Posted: Jul 14, 2010
 

I forgot to mention that the bulleted lists wern't centered, they were aligned to the left.

and in my project I'm using Silverlight 3 and Liquid Controls version 5.2.7 (the latest right now).

 
 
charnet3d
charnet3d
RE: Exported XML doesn't render the same after importation Posted: Jul 14, 2010
 

Here's another unexpected behavior relating to the same feature (export/import):

when I write a line with more than one indentation, I export the text, and after importing it I get this line with only one indentation, which not what is expected at all.


It looks like the export/import feature still needs some more work to get it to behave perfectly, so I hope you'll fix it in the next release.

 
 
dan
dan
RE: Exported XML doesn't render the same after importation Posted: Jul 26, 2010
 

Hi Charnet3d,


Thanks for raising these bugs.  I tried to recreate your first problem and was unable to, this is using the latest version 5.3.2 of the controls, you say you're using 5.2.7, this is an old version is is not supported anymore.


Could you provide me with the actual XML that you are saving and then reloading?


Thanks!

 
 
charnet3d
charnet3d
RE: Exported XML doesn't render the same after importation Posted: Jul 27, 2010
 

Thank you for your reply!


here's the xml that got saved into the database:


<LiquidRichText xmlns:liquid="clr-namespace:Liquid;assembly=Liquid.RichText">

 <Style ID="Normal" FontFamily="Portable User Interface" FontSize="11" Foreground="#FF000000" Alignment="Left" VerticalAlignment="Center" />

<Style ID="Custom6" FontFamily="Times New Roman" FontSize="36" FontWeight="Bold" Foreground="#FF339966" Alignment="Center" VerticalAlignment="Center" />

<Style ID="Custom13" FontFamily="Times New Roman" FontSize="72" FontStyle="Italic" FontWeight="Bold" Decoration="Underline" Foreground="#FFFF6600" Alignment="Center" VerticalAlignment="Center" />

<Style ID="Custom14" FontFamily="Times New Roman" FontSize="72" FontStyle="Italic" FontWeight="Bold" Decoration="Underline" Foreground="#FFFF6600" Alignment="Left" VerticalAlignment="Center" />

<TableStyle ID="TableDefault" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CellBorderBrush="#FF000000" CellBorderThickness="1,1,1,1" CellPadding="2">

</TableStyle>

<Text Style="Custom6">

<![CDATA[1ère année enseignement fondamentale]]>

</Text>

<Newline />

<Text Style="Custom13">

<![CDATA[Arabe]]>

</Text>

<Newline />

<Xaml>

<liquid:Bullet Type="Number" Number="1" />

</Xaml>

<Text Style="Custom14">

<![CDATA[A]]>

</Text>

<Newline />

<Xaml>

<liquid:Bullet Type="Number" Number="2" />

</Xaml>

<Text Style="Custom14">

<![CDATA[B]]>

</Text>

<Newline />

<Xaml>

<liquid:Bullet Type="Number" Number="3" />

</Xaml>

<Text Style="Custom14">

<![CDATA[C]]>

</Text>

</LiquidRichText>


At the beginning, the developpement was being done on version 3 of silverlight, that's why I had to use version 5.2.7. but after encountring yet another limitation, my boss decided that it should be okay for my project to be ported to version 4, which was quite easy and straight forward.

The limitation we had is that version 5.2.7 of your RichTextBox didn't support writing Arabic (the letters appeared but weren't connected to each other as it should be in arabic), your new version of the control 5.3.2, supported writing arabic, but what I noticed is that selecting and formatting arabic text wasn't working well, when I select the first letter of a word and apply bold to it, the last letter becomes bold instead and exchange places with the first! In addition to that, there's the fact that selection wasn't following letters quite well.

We could have used the new richtextarea included with silverlight 4 which appears to have solved these problems but I couldn't export to HTML, so my final choice was to use your HtmlRichTextArea. I noticed that this control is based on the native one, adding to it loading and exporting HTML.

Actually, I liked your RichtextBox better because it's much more flexible and easy when it comes to formatting. The HtmlRichTextArea was very limited in its formatting capabilities, and I'm even having problems with text alignement right now (If I change the alignement of some text, when I go to the next line with a return, the alignement of the new line doesn't persist and it turns back to left aligned).


I hope I wasn't very exhausting, but I think my feedback will keep you more informed, so that your controls will become even more useful to everyone.


Thank you for your help!! ^^