aspx Tutorial

.NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services, .NET articles, Sharepoint 2010, visual studio 2010,Aamir Hasan,IT, Building Your First Web Application Project
Advertise Here

Toolbar

Get our toolbar!

Advertize



{#advanced_dlg.about_title}
by Aamir Hasan   on Wednesday, November 17, 2010
Several times,this question has been asked that how to print a page in Silverlight, thanks to Microsoft who  have given this print support in Silverlight 4. Before going to start you must have installed Visual Studio 2010 and Silverlight 4.Let’s start. Open your Visual Studio 2010, from File -> New Project -> Select Silverlight template -> give a name and click OK button to continue. Following is the code of  Main.xaml file.<UserControl x:Class="Silverlight4_Printing.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"    mc:Ignorable="d"    d:DesignHeight="400"  d:DesignWidth="560" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Center">        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label1" VerticalAlignment="Top" Width="297" />        <Button Content="Print" Height="23" HorizontalAlignment="Left" Margin="66,103,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />    </Grid></UserControl>Following is the code of  Main.xaml.cs file        public MainPage()        {            InitializeComponent();            label1.Content = "Welcome to aspxtutorial.com";        }        private void button1_Click(object sender, RoutedEventArgs e)        {            var document = new PrintDocument();            document.PrintPage += (s, args) =>            {                args.PageVisual = LayoutRoot; args.HasMorePages = false;                button1.Visibility = Visibility.Collapsed;            };            document.EndPrint += (s, args) =>            {                button1.Visibility = Visibility.Visible;            };            document.Print("Silverlight Print Page");        } Output Download Silverlight 4 - Printing page.zip (252.13 kb) See live demo
{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, August 29, 2010
Microsoft Silverlight 4 Tools for Visual Studio 2010 is available, Download Silverlight 4 Tool
{#advanced_dlg.about_title}
by Aamir Hasan   on Sunday, August 29, 2010
Visual Studio 2010 RC or Visual Web Developer Express 2010 RC or Visual Phone Developer Express 2010 that matches the language version of Silverlight Tools 4 must be installed before installation of Silverlight Tools can continue. Silverlight Tools is available in other languages at More
{#advanced_dlg.about_title}
by Aamir Hasan   on Friday, August 20, 2010
Microsoft recently introduce Silverlight 4, in Silverlight 4 Microsoft have remove old bugs and introduce some new features, in old version of Silverlight there is no support of print the application and double click event, now these all features are available in Silverlight 4 and more control and function are also given. New features and improvements contains the following sections Controls Out-of-Browser Media Networking Printing User Interface XAML Data Application Model Core Silverlight Designer Windows Phone Platform Support Related Topics   For more details and information click here MSDN What's New in Silverlight 4. Reference: Silverlight 4 : The Official Microsoft Silverlight Site
{#advanced_dlg.about_title}
by Aamir Hasan   on Friday, March 12, 2010
Here Aamir Hasan has explained how to bind data in combobox control in silverlight More
{#advanced_dlg.about_title}
by Aamir Hasan   on Wednesday, March 10, 2010
Here Aamir Hasan has explained how to bind DataGrid control in silverlight. More
Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5