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 […]
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 * […]
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 […]
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 […]
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 […]
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 […]
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:=””)> […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 * […]
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. […]
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 […]
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 […]