MULTIMEDIA

Silverlight : Make Your Application Run out of the Browser

10/9/2010 4:44:15 PM
When is a web application not a web application? When it’s been enabled to run straight from the desktop. First, add a small (say, 48×48 pixels) PNG image file to your solution and set its Build Action to Content. In the Silverlight tab of your project’s settings, there is a check box to enable running the application outside of the browser, in addition to a button that opens a dialog box enabling you to specify additional settings (such as the icon). Enabling this setting creates the file OutOfBrowserSettings.xml in the Properties folder of your project. It looks something like the following:
<OutOfBrowserSettings ShortName="VideoPlayer Application"
EnableGPUAcceleration="True"
ShowInstallMenuItem="True">
<OutOfBrowserSettings.Blurb>
VideoPlayer Application on your desktop; at home, at work or on the go.
</OutOfBrowserSettings.Blurb>
<OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="VideoPlayer Application" />
</OutOfBrowserSettings.WindowSettings>
<OutOfBrowserSettings.Icons>
<Icon Size="48,48">VideoPlayerIcon.png</Icon>
</OutOfBrowserSettings.Icons>
</OutOfBrowserSettings>

When you right-click the application, you get an option to install it locally, as shown in Figure 1.

Figure 1. It’s easy to make your Silverlight application available offline with some simple configuration settings.


Once the app is installed, right-clicking it gives you the option to remove it from the local machine.

Other  
  •  Silverlight : Put Content into a 3D Perspective
  •  Silverlight : Response to Timer Events on the UI Thread
  •  Silverlight : Build a Download and Playback Progress Bar
  •  Silverlight : Play a Video
  •  C# 4.0 : Add a Static Constructor and Initialization
  •  C# 4.0 : Add a Constructor
  •  .NET Compact Framework : Font Selection
  •  .NET Compact Framework : Drawing Text
  •  Programming the Service Bus
  •  WCF Services : Generics
  •  WCF Services : Delegates and Data Contracts
  •  WCF Services : Enumerations
  •  WCF Services : Versioning
  •  WCF Services : Data Contract - Equivalence
  •  WCF Services : Data Contract - Hierarchy
  •  WCF Services : Data Contract - Attributes
  •  Executing Work on a Background Thread with Updates
  •  Persisting Data on the Client with Silverlight 4
  •  Dynamically Loading XAML on Silverlight 4
  •  Leverage and Locate Controls and Classes on Silverlight 4
  •  
    Top 10
    -  SQL Server 2008 : General T-SQL Performance Recommendations
    -  Algorithms for Compiler Design: PEEPHOLE OPTIMIZATION
    -  Programming the Mobile Web : WebKit CSS Extensions (part 4) - Animations
    -  A place to develop
    -  Choosing a super-zoom camera (part 3)
    -  Ultrabook: The next generation
    -  Algorithms for Compiler Design: ERROR RECOVERY IN LR PARSING
    -  Sharepoint 2007: Create a New List Item
    -  Designing and Implementing Mobility in Exchange Server 2010 : Working with Windows Mobile Pocket PC and Smartphone Editions
    -  Business Intelligence in SharePoint 2010 with PerformancePoint Services : PerformancePoint Services Overview
    Most View
    -  Shell-Spawning Shellcode
    -  Design and Deploy High Availability for Exchange 2007 : Design CAS High Availability
    -  iPhone Application Development : Understanding Interface Builder
    -  Windows Phone 7 Development : Push Notifications - Introducing the Push Notifications Architecture
    -  Integrating Office Communications Server 2007 in an Exchange Server 2010 Environment : Exploring Office Communications Server Tools and Concepts
    -  SQL Server 2008 : Transact-SQL Programming - The OUTPUT Clause
    -  Assembly vs. C
    -  Restart Manager in Windows Vista
    -  IIS 7.0 : Configuration File Syntax
    -  Send an Email via SMTP
    -  Joomla! Blogging and RSS Feeds : Commenting anyone?
    -  The New iPad
    -  Parallel Programming with Microsoft .Net : Pipelines - Anti-Patterns
    -  Microsoft XNA Game Studio 3.0 : Controlling Color (part 2)
    -  Android Security : Files and Preferences
    -  Windows System Programming : File Pointers & Getting the File Size
    -  Windows Server 2008 : Designing Organizational Unit and Group Structure - Understanding Group Design
    -  jQuery 1.3 : Developing plugins - Adding new global functions
    -  Windows Server 2003 : Creating and Configuring Application Directory Partitions
    -  SQL Azure : Tuning Techniques (part 2) - Connection Pooling & Execution Plans