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.

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!! ^^