Click here to Skip to main content
15,892,269 members
Everything / Silverlight / Silverlight4

Silverlight4

Silverlight4

Great Reads

by Kunal Chowdhury «IN»
Customized Scrolling in Silverlight using Expression Blend
by İlkay İlknur
Silverlight Focusing Issue
by Kunal Chowdhury «IN»
How to implement template binding in Silverlight custom control
by Abhijit Jana
A demo of how to integrate a Silverlight Application with SharePoint 2010

Latest Articles

by Sumit Samediya
Here we will learn how to remove default background color of ListBox item on selection in Windows Universal App
by Sumit Samediya
In this article we will learn how to use existing sqlite database in WP 8.1 apps.
by Wayne Ye
Elevated trust in Silverlight 4
by Eugene Sadovoi
Implements delayed or disabled INotifyCollectionChanged.

All Articles

Sort by Updated

Silverlight4 

8 Dec 2020 by Sunasara Imdadhusen
I need to have DataGrid without row headers at all (It is aromatically comes at left hand side with > arrow) rows.How to kill this default column and completely hide row headers?.Any answer will be appreciated:thumbsup:Thanks,Imdadhusen.
8 Dec 2020 by Member 15015307
datagrid1.RecordSelectors = False
2 Oct 2019 by Member 14587461
I have the following code where I try to search and display the pdf files of a specific path var files = Directory.EnumerateFiles(@"\\192.168.1.216\UploadFileMobilePDF\" + transfer.IdTransfer, "*.pdf", SearchOption.AllDirectories); foreach (var file in files) { ...
27 Jan 2019 by muryali09
I am using Visual Studio 2015 with MS .NET Framework Version 4.7. My project working fine and I am trying to find something in the project but suddenly it started giving the above error. Although I have not changed anything in it. If something has been changed mistakenly then I am not sure....
4 Sep 2016 by k.swapna
Hi,My project requires me to develop a calendar event in Silverlight 4.0 and I am new to Silverlight. How do I develop calendar events in Silverlight 4.0?I am sending you the link in which there are calendar events and trying to do the same. Can you go through the link and click on...
26 Mar 2016 by Sumit Samediya
Here we will learn how to remove default background color of ListBox item on selection in Windows Universal App
20 Mar 2016 by Sumit Samediya
In this article we will learn how to use existing sqlite database in WP 8.1 apps.
8 Sep 2015 by abdulwahid
My problem and the solutionI have a 32 bit third party dll which i have installed in 2008 R2 machine which is 64 bit.I have a wcf service created in .net 4.5 framework which calls the 32 bit third party dll for process. Now i have build property set to target 'any' cpu and deployed it to...
6 Aug 2015 by Sathish km
Hi, I have created one Confirmation box using silverlight, it's having two buttons(OK, Cancel). I have written screen capture code for "OK" button click whenever i clicked.I got the dll file from that solution(Confirmation box) and paste into it(.dll) in different silverlight projects for screen...
6 Aug 2015 by rudhrabalan
I have combo box in veiw1. If I select the value form that combo box. Based on that value view2 textbox are convert as editable
19 Jul 2015 by Purushottam Kumar
I am using Web service to upload file from silverlight client. I managed to upload files successfully using below code[webservice] from same computer but i get error on uploading from network.I tried fixes like setting file permissions to full, but none worked.using System;using...
18 Jul 2015 by Sem.Shekhovtsov
Before checking the code, make sure that saving files is ENABLED in client browser settings. If it's not, you won't be able to write to the disk and save files.Secondly, in the Silverlight application you should write to the Application Data storage only:if...
26 Mar 2015 by Usha Sanjee
need to bind data for multiple combobox controls in edit mode.but due to asynchronous calls I'm not able to read the proxy result .I can do this in constructor itself but those controls were dependency(one controlid is need for another control for that specific data)so I can't bind this in...
21 Sep 2014 by Wayne Ye
Elevated trust in Silverlight 4
28 Aug 2014 by Chibuye
Dear All,I want to select an Item from a combobox within a Datagrid in Silverlight. But when I select an Item on any row, all the rows show the same Item. The XAML is shown below:...
21 Aug 2014 by Thilina Chandima
i hope this will help youprotected string GetUser_IP(){ string VisitorsIPAddr = string.Empty; VisitorsIPAddr = Request.ServerVariables["REMOTE_ADDR"].ToString(); ureturn VisitorsIPAddr;}
21 Aug 2014 by Arifa S
Dear All,I am developing one web-based application in which I just want to find out IP Address of my user's PC(the one who logged-in My App). Can any one suggest me any function supported in Silverlight to get IP Address.Thanks In Advance!!Aarifa.
8 Aug 2014 by Pushkar The Heaven
DataClass obj=new DataClass(); // this is the class used in databindingobservablecollectionobj[0] = obj ; // if want to insert at any position, you have mention the index no.
6 Aug 2014 by Abhinav S
A similar question was asked here[^]. The answers should surely help you.
6 Aug 2014 by jadavparesh06
To Add empty Row in DataGrid simple add one value to the Collection bound to this Datagrid.for Example,If you have bound a DataTable to your DataGrid then adding new Row in To DataTable will Automatically add new Empty Row in Datagrid.
21 Jul 2014 by Venkata Ghanitala
Hello Christian,Thank you very much for your reply.I've solved the issue myself.I am posting the code below, which may help others:Step 1: Create new project and Create New Webservice.Step 2: Write the following method: [WebMethod(Description = "Validate a...
21 Jul 2014 by Christian Amado
There is only one answer to your question... How to: Use Windows Authentication to Secure a Service for Silverlight Applications[^]We cannot do the task for you, but reading the article you will find the path.
21 Jul 2014 by Venkata Ghanitala
Hello Everyone,I am new to Silverlight. I want to implement windows authentication with active directory for silverlight application,I have not found complete downloadable example. Can you please send me the links, where can i download the example?.Can you suggest me, how can i...
18 Jun 2014 by Member 9472447
I actually need to implement Word like functionality of re-writing an already saved file in my Silverlight application without SaveFileDialog prompting again for the name of the file.I open up SaveFileDialog box when I want to save the file for the first time. After that I want that...
15 Apr 2014 by Vikash Kumar Raja
hi this is vikash kumarI am facing some problems in silverlight i want navigate to startup page of the silverlight project for google chrome.I am using this code but it is working in mozila and Ie but is not working in google chrome.string url =...
4 Jan 2014 by Richard MacCutchan
See https://www.google.com/search?q=dayanamic+header+and+sub+header+in+datagrid[^].
4 Jan 2014 by Vikash Kumar Raja
Hi,This is vikash kumar. I am facing problems to how to add dayanamic header and sub header in datagrid in Silverlite please give me solution as soon as possible.Thanks and regard vikash kumar
18 Dec 2013 by Vinodh.B
Hi Can any suggest how to do Microsoft unit test for the viewmodel in silverlight . Please refer the follwing code . TEchnologies . Silverlight 4.0MVVM ENtityWCF . Test page code . [TestClass] public class TestClass1:SilverlightTest { [TestMethod] ...
18 Dec 2013 by Savalia Manoj M
The default behavior of the RadTabControl is to keep only the content of its SelectedTab in the VisualTree. However if you want to keep the content of the RadTabItem which you have already selected you can set the IsContentPreserved = true property of the RadTabControl.
13 Dec 2013 by Savalia Manoj M
Hello all,I have one Tab Control in silverlight. In my tab there are 2 tab item. In tab-1 and tab-2, i am adding run time control into Canvas. And i have one Save button out side of tab. My Xaml page like,
11 Dec 2013 by Trushal19
Hi,Need help!!I have two DataGridTextColumn and I want to wrap and unwrap on button click event.i have following two columns, how can I implement this functionality. I tried but can't find any solution. Thanks in Advance.
4 Dec 2013 by Trushal19
Hi,I am working on Silverlight 4. Working on MVVM model.In my project I am calling page2.xaml from Page1.xaml by sending the values using SendMessage from Page1.xaml to trigger and initalise datagrid which is on Page2.xaml and values are populating . But now I need to hold the value in...
1 Dec 2013 by _Maxxx_
Put simply, MVVM does not determine from where your model classes get their data - MVVM is just a pattern used for development.Your model classes could be plain old objects that you populate programatically (say via a datareader from a database, or from loading a CSV file from disk - MVVM...
27 Nov 2013 by Sergey Alexandrovich Kryukov
"Model" is itself data. More example, Model includes classes which describe the data, instance of those classes during runtime (some object graph) is truly the data. I think you should be more accurate in distinction of data. When you say "get data", and, say, "population", you might mean...
27 Nov 2013 by Member 9472447
I am currently studying MVVM pattern. I am clear with the concept that Model contains classes, View is just the visual representation of data and ViewModel is the layer that connects Model and View and carry out all manipulations.But i m still not clear with the fact that from where does...
28 Oct 2013 by Waseem-Malik
in silverlight xaml,i created one registration form for users(data stored in Sql server),after that i login application,i used Form Authentication.these all are okay.butnow i want to Log out from that application.In asp.net we do like this Session.Abandon(); but in silverlight,it...
23 Aug 2013 by Member 7933343
Dear All,I am trying to bindind ComboBox using webservice but not able to bind.XAML code :- SelectedValue="{Binding Path=SelectedStateCode, Mode=TwoWay}" > ...
7 Aug 2013 by adriancs
I have face the exact problem like you.Using PHP script to connect SilverLight to MySQL is my first approach.But later, I had discovered a more convenient/easier way, by using C# Web Services.I have written an article explaining the steps in details with illustrations.>> Connecting...
6 Aug 2013 by Kieran Partridge
Hello, I've got a script on my server which will return a simple string; I am trying to use Silverlight C# to return a string from my database so I can bind it into my site.I've got PHP and Silverlight working together; I just need a way so I can call a script from a website and have the...
28 Jul 2013 by Mohammed Hameed
I have a Datagrid with 'Select' column, having Radiobutton. If sorting is performed on any other column the Radiobutton is loosing its selection.You can check the same kind of question posted on MSDN...
23 Jul 2013 by MikeTheDebugger
I don't know if this is really "proper" but your explanation of events helped me come up with this "bandaid." It seems to work! I just successfully updated 2317 records. I watched them all go through Fiddler and then queried the database to confirm. If you have any ideas for improving this let...
22 Jul 2013 by Jason Gleim
So it looks like the issue may be somewhere in the flood of async calls going to the server but it is actually breaking on the client side. This makes me curious and I may write up a test program just to dig into this deeper and maybe write an article about it. There is something going on there...
22 Jul 2013 by MikeTheDebugger
I took the event handler out and I'm sure I've tried that before. It's still not working right now. I got 700+ entries in Fiddler this time but, due to randomness of success, this could be less if I run this later on in the day. I've posted the original code and what I've done to...
19 Jul 2013 by MikeTheDebugger
I am working on an application that uses Silverlight. The issue is based around the update process.The update uses delegates (via InvokeAsync) which place calls to a web service.It will call BeginInvoke X number of times and THEN when EndInvoke is called we find out if they failed or...
14 Jul 2013 by jaswinder wadali
capture webcam and microphone recording video with videosink audio with audiosink convert into avi ad write file by riffavi writer on hard drive by save dilogbox but i want save video on server and after store it into sql server
15 Jun 2013 by Abhinav S
This MediaSourceSample[^] might help you get started.
14 Jun 2013 by brodcasting
i want to play audio file using mediastreamsource class .
13 May 2013 by srinivas.dammalapati
Hi,I am binding data to datagrid in codebehind, so now i need to display grid based on data columns length, how to set it.RegardsSrinivas
19 Apr 2013 by n.manish
i m creating a project which has a DataGrid which will have ten thousands of record,i was thinking of loading them progressively,i.e Initially only 100 rows will be fetched ,when the user scrolls down and reached around 90th the next 100 rows will be loaded.For this i m using the loading row...
22 Feb 2013 by atul tr
Hello, I want to read template file which is a docx file and replace all the tags with some values.how can i do in silverlight.
19 Feb 2013 by Raj Kumar Pandey "Achyutanand"
Steps to be followed.1.Bind the datagrid with a List.2.Update the list on Update/Save/Delete3.Use UpdateSourceTrigger(Recomended) to referesh the value of the List in Grid or bind with Item Source.Enjoy MVVM :)
6 Feb 2013 by Dave Kreskowiak
They would have to install a Silverlight plugin, on Linux systems it's called MoonLight, in order for it to work.Read here[^] and follow the links for downloads and install instructions.Keep in mind that Moonlight is NOT an official Microsoft release, so functionality cannot be...
6 Feb 2013 by recoverinfotech
if we user ubuntu as an client system
21 Jan 2013 by Member 4268380
Hello Experts,I have developed one web application using silverlight 4.0. Now the requirement is to launch desktop application (could be third party or any platform) from the silverlight browser (mostly IE). Moving further I am planning to establish a communication (TCP/MSMQ) channel among...
21 Jan 2013 by Abhinav S
If you are running the Silverlight application in the browser, it is not possible at all.SL runs under high security constraints and thus it is not possible to run anything outside of the browser.Silverlight out of browser applications[^] run with elevated privileges and there might be...
1 Jan 2013 by prashant patil 4987
yes nice one..The error shows a different string to the one you pasted as your code.
23 Dec 2012 by Himu from Orissa
aam trying to create a silverlight application. After selecting the silverlight template, aam not getting the option "automatically generate a test page to host silverlight at build time". I am only getting option "Host the silverlight application in a new website". I am running a windows xp pc...
28 Nov 2012 by Savalia Manoj M
Add checkbox inside combobox in Silverlight.
18 Nov 2012 by SpartaMay
Just as the subject described, though the DoubleClick happened,but the Click also happened ,but what I want is only DoubleClick. Where is the mistake? Any one could help me find it ?This is the code of MouseClickManager.csusing System;using System.Windows;using...
18 Nov 2012 by SpartaMay
The table of the datagrid is read from database by the way WCF RIA,and I just want to select several rows of the datagrid and delete them,but I found that when I selected one rows in the first page ,the rows at the same location of all the other page in the datagrid is selected!!!It's really a...
18 Nov 2012 by SpartaMay
I just creat a business silverlight Project and add a table about Student from the database by WCF RIA to the datagrid,and now there is a columns about ClassInfo and I want to merge the cells to make the student from the same class together.how can I reach it?And I try the way to use...
24 Oct 2012 by ashokm01
Create an global declarationObservableCollection myObs = new ObservableCollection();Add New FunctionPrivate void AddRows(){myObs.Add(new Person() {});datagrid1.itemsource=myObs;}Call the above function in a button click to add new rows dynamically.
16 Oct 2012 by Prabhakaran Soundarapandian
Good Day! I need a help/suggestion to register the custom binding extension for my silverlight duplex commnication(To use PollingDuplexHttpBinding) for my self hosting wcf service. the below is the binding details which i get it form...
29 Sep 2012 by soniaTan
hey hi! i used the dynamic object concept..it solved a bit my problem but now i m still facing problem..here's how i changed my dataservice method--[OperationContract] public List GetExcelRevenue(string flagcmb, string type, string cust_code, string cust_name) { ...
27 Sep 2012 by Rahul saraswat
Hi, I think You have to create a dynamic class or on run time. so you can use Dynamic object to create class and its members on run time. use dynamic object. and try it. you can find dynamic concept in .net framework 4.0.Regards Rahul
27 Sep 2012 by soniaTan
I have made use of dataservice in my silverlight project.CItems.cs is my class file in which i have defined all the classes.now in my dataservice i have method to extract data from database..now what i want is a class should get generated along with its properties based upon the dataset...
26 Sep 2012 by Tilak Raheja
Use installer class. This will help you to do what you want during installation.
26 Sep 2012 by Tilak Raheja
Solved it. Using a text-block and handling the visibility & text of the text-block whenever mouse is down or up on an item.You Can ask for the code @ tilakraheja@gmail.com.
26 Sep 2012 by Tilak Raheja
Solved it.. Using a text-block and handling the visibility & text of the text-block whenever mouse is down or up on an item.You Can ask for the code @tilakraheja@gmail.com
4 Sep 2012 by Christian Amado
Are you using Entity Framework? If the answer is yes. You must search for your metadata file. And see your validation in the class.Probably your problem is DataAnnotations.Hope it helps
4 Sep 2012 by prashant patil 4987
Below is my code
28 Aug 2012 by Christian Graus
Silverlight MVVM[^]I am not sure, given that you're asking us to do all your research for you, if you mean the MVC pattern, or the MVC web framework. I would not use WCF if I could avoid it. I found nothing with google to suggest people are doing MVVM or MVC with WCF, and I don't see how...
28 Aug 2012 by Christian Amado
May be these helps you a little (specially the second one): http://www.codegain.com/articles/linq/general/how-to-read-excel-data-using-linq-to-excelprovider-in-dotnet.aspx[^]http://www.silverlightshow.net/items/An-Excel-file-Viewer-in-Silverlight-4.aspx[^]Now, an idea that I have is to...
28 Aug 2012 by Sudhir Kumar Srivastava lko
Hi To All,I am using Silverlight4, I need to read the data from Excel to Silverlight and want to display. i search on net and found so many option but all are working when u create "Out of Browser" Silverlight application. I got a third party dll "Lite.excelLibrary" but this is working only...
28 Aug 2012 by prashant patil 4987
Can any one tell me about SIlverlight MVVM, MVC, MVC WIth WCF and MVVM with WCF With Example.??Thanks in advance.
24 Aug 2012 by Savalia Manoj M
How to create custom Datapager Usercontrol in Silverlight?
23 Aug 2012 by Vlad-Dragos
Hi, Saying you have a data grid and a button on your main page:
23 Aug 2012 by haluk_78
Hello guys,I am new on silverlight so I would like to know that how to select a row or cell in the datagrid in a silverlight application...Is there anyone who can help me about this?RegardsHaluk
23 Aug 2012 by Savalia Manoj M
Work with Cascading Drop-down Lists in the Telerik Gridview Control
22 Aug 2012 by Christian Graus
The error means what it says, and the error indicates that the last ) is missing from the string being parsed. The error shows a different string to the one you pasted as your code.
22 Aug 2012 by prashant patil 4987
I got exception when m using below code on databinding validation.if (Regex.IsMatch(Convert.ToString(value), "^(select) ([a-zA-Z0-9_, ])+ (from) +([a-zA-Z0-9_, ])*$")){ return true;}throughs below Exception:parsing "^(select) ([a-zA-Z0-9_, ])+ (from) +([a-zA-Z0-9_]*$" - Not...
15 Aug 2012 by Leo Rajendra Dhakal
the best option is paging which loads minimum pages records only as a result pages load fast, it ignore large numbers of data.
7 Aug 2012 by lewax00
You should probably use the built in paging features of the GridView class (see this example[^])That's a lot of data for a web page, think about it:Let's assume you only have one column, each entry empty, and the encoding is UTF-8The GridView will generate a table, each row needs ""...
7 Aug 2012 by Kenneth Haugland
There is code for this in WPF, you should however be able to translated it to Silverlight without big issues:http://bea.stollnitz.com/blog/?p=344[^]
7 Aug 2012 by PEIYANGXINQU
My code is gridview.datasource=a (a is list whcih has 20 thousand ),the speed is so slow; my idea is when user firstly enter the web page , I set gridview.datasource=a1 (a1 is the first 1 thousand rows of data in a); and than I set gridview.datasource=a1 (a1 is the first 2 thousand rows...
5 Aug 2012 by Sangramsingh Pawar
As I understand from your question, you want to develope some effects in silverlight or in WPF. Silverlight and WPF are most powerful designing tool in .net. To develope above effects you have to use animations from wpf or silverlight. You should have good knowlade of diffrent animation types...
5 Aug 2012 by starrycheng
Such "topology" how should do ???1, The "topology" is divided into three layers. Click on the first floor, it will turn to the second floor of the corresponding. Click on the second floor, jump to the third floor of the corresponding.2,The "Topology" dynamic generation ...
5 Aug 2012 by Prabhakaran Soundarapandian
In WCF you could use the "asynchronous pattern" for polling service and it will easy to Implement.You have to add in your WCF method.[OperationContract(UseAsyncPattern = true)]
5 Aug 2012 by ravindra sawant
Hello,How to develop Polling service in Silverlight using WCF service and it will update grid automatically with latest data from database?As i go through some of blogs found that you can do this using "Dispatcher".Please help me to build this.Thank you.
1 Aug 2012 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Please check the below links for implementing WCF in IIS 6.Deploying Silverlight WCF RIA Services on IIS 6[^].Don't forget to click the other link present in that post.Thanks...
1 Aug 2012 by Kenneth Haugland
HEre is a guy that seems to have the same problem as you have:http://social.msdn.microsoft.com/Forums/en/wcf/thread/c5301890-3bc3-4c58-b5bb-fff480c2423b[^]Otherwise I dont know, as I have only read books about IIS 7 IIS 6 is not my cup of tea. :)In any case good luck to you :)
1 Aug 2012 by Mivoat
I found I had a duplicate domain service routine, but even though I commented it out the warning would not go away until I closed Visual Studio and reopened.
1 Aug 2012 by Sudhir Kumar Srivastava lko
Hi All,I Have created a silverlight4 application using WCF Ria Service,deployment of this application in IIS 7 is running fine but this is not working in IIS6, i have also read the Microsoft article but i did not get success . so please send me the setting and steps to deploy the application...
30 Jul 2012 by Christian Amado
Add a reference to the project where the Domain Service are.That's the solution.Hope it helps.
29 Jul 2012 by Christian Graus
You can add a silverlight page into a web page, but not sure about the other way. Is there a web browser control in silverlight ?
29 Jul 2012 by Mohd Wasif
Hi All, I have a silverlight application and want's to add an aspx page means (I have a xap file and want to integrate an aspx Page).How to do this?Thanks Mohd Wasif
26 Jul 2012 by Christian Amado
You have a proerty called SelectedItem, this property represent your Row (is your selected object).So in your TextBox, combobox or another control you can do Something like this, in your xaml.Let me take the TextBox for the example: Hope it helps. =)
25 Jul 2012 by atif22
var itemType = MyCombBox.SelectedItem.GetType();var pi = itemType.GetProperty(MyCombBox.DisplayMemberPath);var stringValue = pi.GetValue(MyCombBox.SelectedItem, null).ToString();
25 Jul 2012 by supriya29
HI, I have create graph in silverlight. i have fetch data from database table and attached it to ItemSource proprty of ChartControl(Graph) in silverlight. it display gud for some value and never display bar for some value. y axix is adjusted as per values in database, even i debugg...