(X) Hide this Sign up for the upcoming webinar: Switching on the Cloud for Silverlight by Gill Cleeren. March 23rd, 11 am PST (check your local time)
Full info | Sign up | More webinars
Skip Navigation LinksHome / Articles / View Article

Search

 
Results Per Page

Found 5 results for HTML dom.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Gill Cleeren  on  Feb 13, 2011 (1 month ago)
    SilverlightShow and Gill Cleeren start a series of materials aimed at helping you get prepared for taking Microsoft Silverlight Exam 70-506. Through this series we will try to structure the resources available on the internet, grouping them by topic covered in the exam. Any feedback would be much appreciated! Thanks! 

    This article is Part 5 of the series on Microsoft Silverlight Exam:

    Time flies when you’re having fun and meanwhile learning something. That certainly goes for me while I create these articles; I hope it’s the same for you when you read them. If you kept track, we have now arrived at part 5 already, so we are slowly approaching the end of the series. However, this very part is shaping up to be a large one, as you can see. It also covers a lot of interesting material in Silverlight, as we’ll soon see!

    Whereas all previous parts looked at features of Silverlight itself, this part is focusing on the things that happen around Silverlight so to say.



  • 2 comments  /  posted by  Jeff Paries  on  Jan 26, 2009 (more than a year ago)

    Note: This article is submitted by Jeff Paries for Silverlight: Write and Win contest.Thanks a lot, Jeff! Hello All, Please drop a comment if you like it.

    This article is compatible with the latest version of Silverlight.

    Introduction

    There have been many requests online regarding methods to go about sending content to a user from within a Silverlight application. Many Silverlight users have asked for a “Save File” dialog that can be leveraged to pass files out of an application. The technique described in this tutorial shows how you can leverage a standard HTML right-click dialog to allow a user to select the “Save Link/Target As” menu and pass any type of file from any type of object to the user, allowing them to save the file to any location they wish.

  • 6 comments  /  posted by  Boyan Mihaylov  on  Jan 12, 2009 (more than a year ago)

    This article is compatible with the latest version of Silverlight.

    Introduction

    Silverlight helps for creating Rich Internet Applications (RIAs). It runs in the context of the browser. There is an isolated area, called sandbox, which holds the Silverlight application. But why is it necessary to restrict the Silverlight applications in such a way? The answer of this question is pretty simple - because of the security. Running such applications locally is dangerous. They may damage your computer or your data. So, there is a necessity to somehow restrict them. Thus, a Silverlight application runs in the sandbox.

  • 0 comments  /  posted by  Martin Mihaylov  on  Sep 09, 2008 (more than a year ago)

    In order to invoke a JavaScript function  we must access the DOM from the Silverlight application. This can be done with the help of the System.Windows.Browser.HtmlPage class. Here it is how it's done:

    HtmlPage.Window.Invoke( "Function_Name", new object[] { //Array of paramaters that must be passed to the function } );

    We call the Invoke method of the Window property, which takes the name of the function and an array of its arguments as parameters.

    That's it!

  • 11 comments  /  posted by  Martin Mihaylov  on  Aug 19, 2008 (more than a year ago)

    This article is compatible with the latest version of Silverlight.

    This tip is about adjusting the size of the Silverlight object in the Html to the size of the content in our Silverlight application. The example I will use will manipulate only the height, because the width can be manipulated in analogical way.

    Let's start with explanation of how we're going to access the Silverlight object in the HTML. We use the HtmlPage object in the codebehind. With its help we invoke a javascript function, which will deal with Silverlight object in the mark up:

    private void ResizeSilverlightOnject( double height )
    {
        HtmlPage.Window.Invoke( "ResizeObject", new object[] { height } );
    }