" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Using Interaction Triggers to bind Events to View Modals

Posted on November 24th, 2015 by Anobik Dey

he method of binding Events to View Modals only differs in the Xaml, rest of the Code remains the Same. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications. 2) This also requires a reference to System.Windows.Interactivity dll. This […]

Downloading an Image from an external (Image) URL

Posted on November 24th, 2015 by Anobik Dey

The url has to be an Image URL, ending with jpeg, png, jpg, gif Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * […]

Displaying Images stored in Device Media Library

Posted on November 24th, 2015 by Anobik Dey

Displaying Images Stored in Device Media Library Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * 3 ) All the contents in the […]

Display Popup Box in Windows

Posted on November 24th, 2015 by Anobik Dey

This program displays a popup box with hello world text To Display a Popup in windows phone 7, First of all create two PhoneApplicationPage For Example : 1- MainPage.xaml -> Startup Page for the Application in which popup will be shown 2- PopupView.xaml -> Popup page that contains all the stuff to be displayed in the […]

Isolated storage in Silverlight application

Posted on November 24th, 2015 by Soumya Patnaik

We can use Isolated Storage as a virtual file system to store data in a hidden folder on our machine in silverlight application. Silverlight application is allocated the storage of 1 MB per application but we can increase the amount of storage. This is the function to get the data in the isolated storage   […]

Set the foreground of the cells dynamically on selected row in Silverlight 2.0

Posted on November 24th, 2015 by Rupesh Nayak

While working with Silverlight datagrids sometimes we want to change the foreground of the selected row. This can be done by traversing through each columns of the datagrid and setting the foreground of each cell as follows   void dgMyDatagrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { foreach (DataGridColumn dgColMyGridcolom in dgMyDataGrid.Columns) { //Get the selected cell content […]

How to share Entity between the wcf service and .xaml in Silverlight

Posted on November 24th, 2015 by Soumya Patnaik

We can share the entity between the wcf service and .xaml using datacontract. Datacontracts are shared between the  client and the service.The DataMember attribute must be applied to each member of the data contract to indicate the datamember is exposed. Create a Silverlight-enabled wcf service and define the data contact attribute withing the .svc <ServiceContract(Namespace:=””)> […]

How to increase the Isolated Storage Quota limit in Silverlight 2.0

Posted on November 24th, 2015 by Rupesh Nayak

n Silverlight application Isolated storage space plays vital role to store information at client side.Since silverlight applications are not allowed to access the file system of the client so If you want to store any information in client side like shopping cart items, user related information or any other application related settings that it can […]

Session management in Silverlight and WCF service

Posted on November 24th, 2015 by Soumya Patnaik

Silverlight controls can’t access session variables directly as silverlight controls are client side controls.but we  can call WCF services to manage session in Silverlight. We have to Set the session variable in the wcf service as follows. <ServiceContract(Namespace:=””)> _ <AspNetCompatibilityRequirements (RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)> _ Public Class PersonService <OperationContract()> _ Public Sub DoWork() ‘ Add your operation implementation […]

Communicating between Silverlight and wcf service using MessageHeaders

Posted on November 24th, 2015 by Soumya Patnaik

We can use messageHeaders to check and authenticate the connection between the Silverlight and WCF service. Operation context of type System.ServiceModel holds the information for the current operation in client and service side. For sending messages from the client side we will use the OutgoingMessageHeaders of type System.ServiceModel.Channels.MessageHeaders and similarly for receiving header information in service […]

Apply custom style to a Silverlight control in Silverlight 2.0

Posted on November 24th, 2015 by Rupesh Nayak

In Silverlight2.0 controls can be customized in a similar way to that of using CSS in HTML,Silverlight 2.0 allows us to define a group of properties as a Custom Style and later on apply the Custom Style to a controls or more controls.The styles are defined as resource at the application level (app.xaml) or a […]

How to serialize an object in Silverlight.

Posted on November 24th, 2015 by Soumya Patnaik

If we want to serialize and deSerialize an object in silverlight We have to use DataContractSerializer as Silverlight doesn’t support BinaryFormatter. DataContractSerializer under the type System.Runtime.Serialization Serializes and deserializes an instance of a type into an XML stream  using dataContract. Create a Silverlight-enabled wcf service and define the data contract and Datamember attributes withing the […]

Getting the actual position of an element with respect to a parent element in a Silverlight 2 application

Posted on November 24th, 2015 by Subrat Parichha

There are instances when we need the exact position of an UIElement in a silverlight application.An instant solution that comes to the mind isgetPosition() of the MouseEventArgs.   But there are situations when this might not work. Suppose I have a xaml page named Master.xaml.In that particular page I am using a menu which is again another […]

SilverLight : Load Assembly on Demand

Posted on November 24th, 2015 by Tejaswini Das

One of the aim of Silverlight developer is to keep the size application package i.e .xap file as small as possible.The larger the XAP file, the longer it takes to download, and if it grows too large, Silverlight might be unable to load it.   Below are the steps to load assembly on demand and […]

How to Apply Dynamic Themes In Silverlight

Posted on November 24th, 2015 by Surama Hotta

Instead of applying static styles at each and every control of a silverlight page, we can dynamically apply Themes at Application level using following steps.. 1. Create a Themes (or any other name) Folder inside your silverlight application. 2. Add Silverlight Resource Dictionary files like Blue.xaml, Gray.xaml inside that Folder. 3. Define your Styles inside […]

Calling a Silverlight function from Javascript and vice versa.

Posted on November 24th, 2015 by Subrat Parichha

In this tip we will discuss how to call a Silverlight function from our Javascript code and also the reverse technique. All the javascript functions discussed here should belong on the same aspx page where the Silverlight control is present. Calling a Silverlight function from Javascript I have a class, say, ‘Common’ in my Silverlight […]

How to get QuerySting value inside Silverlight code directly

Posted on November 24th, 2015 by Chittaranjan Nahak

Most developers  use  “initParam” to get the QueryString value inside the Silverlight code; i.e at first they get the QueryString value inside the aspx.cs files and then pass that value as a initParam to the Silverlight code. But we can get the queryString value directly from inside the Silverlight code. 1.Use this inside the code-behind of your XAML page […]

Running Silverlight application without browser/Run out-of browser

Posted on November 24th, 2015 by Chittaranjan Nahak

Upto Silverligth 2.0  silverlight application can only run  inside the browser but from Silverlight 3.0 Silverlight applications can run without browser also and can save the data in the DB without browser. In Silverlight 3.0 you can also  store the data even if the newwork connection id not available in  the user’s machine For all […]

Silverlight And Autocomplete Box

Posted on November 24th, 2015 by : Pallavi Kar

In SilverLight Autocomplete box  control, it  takes  some  time  to load  if  very huge data is  bound to it. So , to increase the  performance level of  the control binding event we  can use the “Populating” event. Exp: If  our  requirement  is  to show all names starting  with “Ab” or whatever the  user texts in ,instead  […]

Tips And Tricks On Splash Screen In Silverlight Application

Posted on November 24th, 2015 by SUBHASHREE SAHOO

As you know we can visualize and customize Splash screen for a silverlight application. When the loading of silverlight application takes more than 500 millisecond, by default silverlight shows a splash screen of blinking circles and progress percentage. But have you ever seen a splash screen for small application(taking less than 500 milliseconds)? Do you […]

Display Popup Box in Windows

Posted on November 24th, 2015 by Anobik Dey

This program displays a popup box with hello world text To Display a Popup in windows phone 7, First of all create two PhoneApplicationPage For Example : 1- MainPage.xaml -> Startup Page for the Application in which popup will be shown 2- PopupView.xaml -> Popup page that contains all the stuff to be displayed in the […]

Displaying Images stored in Device Media Library

Posted on November 24th, 2015 by Anobik Dey

Displaying Images Stored in Device Media Library Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * 3 ) All the contents in the […]

Downloading an Image from an external (Image) URL

Posted on November 24th, 2015 by Anobik Dey

The url has to be an Image URL, ending with jpeg, png, jpg, gif Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * […]

Adding web project Image file in the silverlight XAML page

Posted on November 24th, 2015 by Chittaranjan Nahak

During the developement of the silverlight application we should conscious about the .xap file size because silverlight we used to create Rich internet application. So if the .xap file size is more then it takes more time to download the .xap file to the users local machine ,which is not good for the user experience. […]

Using Interaction Triggers to bind Events to View Modals

Posted on November 24th, 2015 by Anobik Dey

The method of binding Events to View Modals only differs in the Xaml, rest of the Code remains the Same. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications. 2) This also requires a reference to System.Windows.Interactivity dll. This […]

Debugging a Silverlight Application for MS CRM 2011

Posted on November 23rd, 2015 by Pallavi Kar

As Silverlight is not a integral part of CRM platform , its very cumbersome  to keep track of error and  debugging  custom codes. So to  debug  a  Silverlight application  for  CRM 2011 we need to  follow  certain steps as  given below : 1.Build  the silverlight application  and set the  breakpoint to the  code where its  […]