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.

lionhome
lionhome
How I can Insert Image into RichText Posted: Jun 23, 2010
 

Image file is use the OpenFileDialog to Browser in LocalSystem. In Silverlight we can not get the fullname of the selected  Image file

   My Code is :

        /// <summary>

        /// Brower The Files in Local

        /// </summary>

        /// <param name="sender"></param>

        /// <param name="e"></param>

        private void btnBrowser_Click(object sender, RoutedEventArgs e)

        {

            OpenFileDialog fileDlg = new OpenFileDialog()

            {

               Multiselect = false,

               Filter="*.jpg|*.png",

            };

            if (fileDlg.ShowDialog()==true)

            {

                this.fileInfo.Text = fileDlg.File.Name;

                Stream stream = fileDlg.File.OpenRead();

                _image.SetSource(stream);

                stream.Close();

            this.richText.Insert("<Xaml><Image Source=\"" + image.UriSource.ToString() + "\" /></Xaml>");

            this.richText.ReturnFocus();

            }

        }

 it is can not work to insert image into Liquid.RichTextBox.

 Can you  tell me How ?

 
 
dan
dan
RE: How I can Insert Image into RichText Posted: Jun 25, 2010
 

Hi,


You can only insert images that are present within your application XAP or contained within you website root folder.


Thanks!

 
 

Rate this page: 

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