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
macarthurwork
macarthurwork
Stack empty Posted: Nov 23, 2011
 

I have a control which gives me exception: Stack empty.


It gives me when I give it a html:


<html>    <head>  <style type="text/css">  .auto-style1 {   font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;  }  </style>  </head>  <body>  <div class="auto-style1">   <div style="float:left;">    <div>     #title# #firstname# #lastname#</div>    <div >     #address1#</div>    <div >     #address2#</div>    <div >     #address3#</div>    <div >     #address4#</div>    <div >     #address5#</div>    <div >     #postcode#</div>    <div >&nbsp;     </div>    <div >&nbsp;     </div>     </div>   <div style="float:right">    <img src="" alt=""/>   </div>   <div style="clear:both;">    <div >     <strong>Dear #title#</strong></div>    <div >     &nbsp;</div>    <div >     Thank you for choosing to purchase your new vehicle from us.<br>     I hope your buying experience was a pleasurable one and all of your needs were met,but if there was anything during your visit that you weren’t completely satisfied with then please don’t hesitate to contact me at      #regionalmanageremail#, and I will do all I can to help.</div>    <div>     &nbsp;<br/><br/></div>    <div >     Kind Regards</div>    <div >     &nbsp;</div>    <div >     <em><strong>#regionalmanager#</strong></em></div>    <div >     <em><strong>Regional Manager</strong></em></div>    <div >     <em><strong></strong></em></div>   </div>  </div>  </body>  </html>


I would be gratefull for any tip.


Here is full code of my control:


namespace SilverlightApplicationLiquid2

{

    public partial class MainPage : UserControl

    {

        public MainPage()

        {

            InitializeComponent();

        }


        private void Button_Click(object sender, RoutedEventArgs e)

        {

            LiquidRichTextBlock.HTML = TextBlockWithRawHTML.Text.Replace("<p>", Environment.NewLine + "<p>");

        }

    }

}


<UserControl x:Class="SilverlightApplicationLiquid2.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

             xmlns:Liquid="clr-namespace:Liquid;assembly=Liquid.RichText" mc:Ignorable="d"

    d:DesignHeight="300" d:DesignWidth="400">


    <Grid x:Name="LayoutRoot" Background="White">

        <Grid.RowDefinitions>

            <RowDefinition></RowDefinition>

            <RowDefinition></RowDefinition>

            <RowDefinition></RowDefinition>

        </Grid.RowDefinitions>

        <TextBox AcceptsReturn="True" x:Name="TextBlockWithRawHTML"></TextBox>

        <Button Click="Button_Click" Grid.Row="1"></Button>

        <ScrollViewer Grid.Row="2">

            <Liquid:RichTextBlock Width="180" x:Name="LiquidRichTextBlock"/>

        </ScrollViewer>

        

    </Grid>

</UserControl>



Best regards