Click here to Skip to main content
15,890,506 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 

24 Sep 2010 by #realJSOP
Google "WriteableBitmap object", and/or "real-time image editing with silverlight".
3 Dec 2010 by #realJSOP
Why don't you just use a more maintainable mechanism. Lamda expressions are obfuscatory and aren't always a good idea....testButton.Click += new EventArgs(button_Click);...private void buttonClick(object sender, EventArgs e){ // do whatever you need to have done}
3 Dec 2010 by #realJSOP
Why don't you just use a more maintainable mechanism. Lamda expressions are obfuscatory and aren't always a good idea....testButton.Click += new EventArgs(button_Click);...private void buttonClick(object sender, EventArgs e){ // do whatever you need to have done}
5 Dec 2010 by #realJSOP
Create your alternative "view", and change MainPage.xaml where you find UriHome.
30 Dec 2010 by #realJSOP
If you're running VS2010 Express, maybe that template isn't included in the Express version. I have the full retail version installed at home, but I'm at work, so I can't check right now.
16 Jan 2011 by #realJSOP
Silverlight4 has a WebBrowser control. Just google "Silverlight4 WebBrowser control":http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-html-hosting-in-the-webbrowser-control.aspx[^]
27 Jan 2011 by #realJSOP
I wrote an article about how I handle the asynchronous nature of Silverlight:How I Optimized my Silverlight Asynchronous Web Service Consumption[^]
3 Feb 2011 by #realJSOP
I use a mix of a global static object and querystring parameters.
8 Feb 2011 by #realJSOP
It's because you're trying to access a UI element that was created on another thread. You have to use Invoke to do that.http://www.silverlightshow.net/tips/How-to-invoke-method-in-the-UI-thread.aspx[^]
9 Feb 2011 by #realJSOP
Hosting a web page (including Silverlight) requires a web server (usually IIS when you're talking about .Net, but Apache can be used as well), even if you're just on a LAN. Clients can't usually change a web site/app so the rest of your question doesn't make any sense.
10 Feb 2011 by #realJSOP
If you're talking about actually creating a Silverlight app that uses RIA, yes. There's even a project template for it in Visual Studio titled Silverlight Business Application.If you're talking about deploying a Silverlight app via RIA, I wouldn't think so, because that's not what it's for.
17 Feb 2011 by #realJSOP
You have to put the files in the right place. When I get to work, I'll tell you where I put them for our stuff.
23 Feb 2011 by #realJSOP
Maybe this will help:http://jesseliberty.com/2008/10/13/data-binding-%E2%80%93-data-validation/[^]Of course, if it doesn't you can always google the phrase silverlight textbox validation, and peruse the more than 87,000 results returned.
4 Mar 2011 by #realJSOP
Put the code into a try/catch block, and use the freakin' debugger.
17 Mar 2011 by #realJSOP
I'm at a complete loss. I have a SL4 app that displays a page with one or more panels. Each panel contains different stuff. One panel will always be a chart, but it's the other panels that are problematic. Essentially, they represent user-entered text (including bullted lists), tables, or other...
23 Mar 2011 by #realJSOP
[SOLUTION] See my Answer to this question.I have two problems with child windows in my Silverlight 4 app. I created a pair of ChildWindows in my Silverlight app. The first child window has a button which causes the 2nd child window to be displayed.Problem #1When I run the app, make...
23 Mar 2011 by #realJSOP
The problem was happening because of this code:Private Sub Button1_Click(ByVal sender As System.Object , ByVal e As System.Windows.RoutedEventArgs) Dim window As ChildWindow1 = New ChildWindow1() AddHandler window.Closed, AddressOf window1_Closed '
23 Mar 2011 by #realJSOP
Another problem I was having was that my app was becoming completely disabled (couldn't navigate or click on anything) when I exited the first child window more than once in a session. The fix was to add this code to my window_Closing event...
30 Mar 2011 by #realJSOP
I don't see why not. All of the same math methods are available that you would have access to in a winforms app. The only thing you have to do differently is the visualization stuff.
4 Apr 2011 by #realJSOP
Other than the RichTextBox, I haven't found a way to retrieve the XAML for a Control in Silverlight4. Is there a way? A work-around I've come up with (but haven't yet tested) is to create a XamlElement class that allows you to specify attributes, content, and child elements. Once the...
4 Apr 2011 by #realJSOP
What to do when the "you're a moron" epiphany smacks you in the head just after you've convinced yourself you're pretty clever.
27 May 2011 by #realJSOP
I found this on the first page of over 2.1 million results with a google search for "asp.net class not registered":http://forums.asp.net/p/1046003/1467497.aspx[^]
1 Jul 2011 by #realJSOP
The only thing I know to tell you is that despite the similarities between WPF and Silverlight, they should only be considered as "cousins rather than siblings coming from the same set of parents. I recommend that if you want to smooth out the animations in WPF, you should use google to find...
3 Jul 2011 by #realJSOP
Are you using this attribute:Stretch="Fill"
7 Jul 2011 by #realJSOP
It might be because you don't have Silverlight4 installed on your system.
26 Jul 2011 by #realJSOP
You don't close it from the external class. Create a custom event in the external class that reflects the service's SaveAsync_Complete event (assuming the service reference isn't public (and it shouldn't be), and hook that event from the child window. When the window gets the event, it can close...
3 Aug 2011 by #realJSOP
You need to use a web service (or RIA Services) to access your database because Silverlight apps cannot use the various .Net SqlConnection and SqlCommand objects. I think it's simpler to use RIA Services.MSDN Creating a RIA Services Solution[^]
12 Aug 2011 by #realJSOP
To convert a byte array to a BitmapImage object:MemoryStream stream = new MemoryStream(bytearray);BitmapImage image = new BitmapImage();image.SetSource(stream);At this point, you can set your object's Source property to your new BitmapImage object.myImage.Source = image;
16 Aug 2011 by #realJSOP
I'm not even sure that's possible with software, even if the photoshopping attempt isn't done very well. I suppose that if someone made it their life's work, and had unlimited time on a supercomputer, they might be able to do it. I suspect that if you're asking how to do it here, you probably...
23 Nov 2011 by #realJSOP
Google is your friend:http://silverlightpdf.codeplex.com/[^]
1 Dec 2011 by #realJSOP
It's not clear what you actually want, so check out the appropriate tip below:Get Your Silverlight MainPage[^]Get The URL For the Page Serving Your Silverlight App[^]
12 Dec 2011 by #realJSOP
You can only communicate with a database via a web service. So that means you have to write one.Google is your friend.
25 Sep 2010 by 1Numpty
MAN OH MAN I CAN'T GET THIS RIGHT. I'm a bit new to this and really need some guidance. I have Silverlight 4.0 and vs 2010 and I want to program in Visual Basic because I HATE C#, so, I make a new Silverlight project under the VB settings template and create a service reference and call it...
5 Jul 2011 by 2irfanshaikh
i think this link[^] will help youhttp://rmanimaran.wordpress.com/2011/01/21/silverlight-datepicker-and-calendar-control/[^]
4 Jan 2012 by 2irfanshaikh
check this link [^]
3 Feb 2012 by 2irfanshaikh
var path = string.Format("/namespace;component/Folderpath/filename", gridType); var uri = new Uri(path, UriKind.Relative); var resourceStream = Application.GetResourceStream(uri); if (resourceStream == null) return...
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...
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...
19 Jul 2010 by Abhijit Jana
A demo of how to integrate a Silverlight Application with SharePoint 2010
22 Mar 2011 by Abhijit07
Original Subject:Datagrid style for the Header of rowheader (left Corner part of a datagrid : Hi, m working on datagrid style in which i have applied the row header style it is working but not working for the...Original Body:Hi, m working on datagrid stylein which i have...
28 Jul 2010 by Abhinav S
I believe you've missed MoveNext while reading through the data reader. Thus, you always get the first record.
4 Aug 2010 by Abhinav S
You could try using ElementName binding as shown here[^].
13 Aug 2010 by Abhinav S
See here[^].
24 Aug 2010 by Abhinav S
Creating properties at runtime within a model that can then be used to bind to a Dataform
1 Sep 2010 by Abhinav S
You need to call your web service everytime you need to do a refresh.If you have implemented INotifyPropertyChanged correctly, you should be able to see data refreshed on the page everytime the service call returns to the client application (and your data has changed).
23 Sep 2010 by Abhinav S
You need to setup communication between the two.Since both are running on the same system, try socket communication.
24 Sep 2010 by Abhinav S
See here[^].
24 Sep 2010 by Abhinav S
Grophs can be implemented using the Silverlight toolkit.See here[^].Samples here[^].
11 Oct 2010 by Abhinav S
In addition to the answer above, if you want to go for a silent install see here[^].
14 Oct 2010 by Abhinav S
Are you talking about a Silverlight application or a WPF based XBAP out of the box application?In Silverlight, you will need to call a web service or use the entity framework.In WPF, you can bind to data using standard ADO.Net features.
21 Nov 2010 by Abhinav S
Nothing is available in the toolkit - however various third parties do offer this control.You can however have a look at this[^] article.
22 Nov 2010 by Abhinav S
Silverlight does not directly support sessions.You can make use of Isolated Storage though - see here[^].
2 Dec 2010 by Abhinav S
You can add an event handler to the button control in the xaml.
11 Dec 2010 by Abhinav S
You might want to start with some quickstarts[^].
27 Dec 2010 by Abhinav S
You are asking a very general question.Styles and templates (amongst tons of other features) help one create rich UI in Silverlight.See here[^].Expression Blend can help you do styling on the fly.Silverlight menus - see here[^]. I really think you should understand some of the...
8 Jan 2011 by Abhinav S
Try devenv.exe /resetsettings.
13 Jan 2011 by Abhinav S
Have a look at the Silverlight enterprise deployment guide here[^].
16 Jan 2011 by Abhinav S
It is quite possible to use WCF and Silverlight together.This[^] will help you start up.You can look at Prism [^]if you want to develop your applications using a modular approach.
18 Jan 2011 by Abhinav S
Silverlight and CSS are not really meant to be used together.Silverlight provides powerful design features like templates and styles which not only provide good UI design, but also event management via state machines.You definitely cannot directly use CSS in a XAML page.
18 Jan 2011 by Abhinav S
Well - msdn could be your best bet - see here[^].
27 Jan 2011 by Abhinav S
SIlverlight does not support synchronous calls.Make use of the Action delegate to come back to your main code once the service returns.
31 Jan 2011 by Abhinav S
Check the ServiceReferences.ClientConfig file to make sure your web service configuration is correct and you are pointing to the correct service url.
31 Jan 2011 by Abhinav S
Try reducing the size of the xap.Make sure the CopyLocal flag is set to false for dll's that are being loaded twice or more.If you have just one xap, try breaking them into smaller xap's and load them on demand.See this answer[^].
31 Jan 2011 by Abhinav S
No not directly.You need to use web services to access the database.
3 Feb 2011 by Abhinav S
I may not have understood your question correctly, but if you are looking for a popup control, there is one available in the toolkit (documented here[^]).There are a few others available via different third parties.
3 Feb 2011 by Abhinav S
Use the code behind file for this - the xaml and the codebehind files are just two partial class files - both part of the same class.
4 Feb 2011 by Abhinav S
These links might help you get started - http://blogs.msdn.com/b/silverlight_sdk/archive/2008/04/18/playing-with-the-popup-control.aspx[^]http://jesseliberty.com/2008/06/06/popup-control/[^]
8 Feb 2011 by Abhinav S
You might need to use to pass the Html Bridge[^] to pass values from a Javascript textbox to SL.
9 Feb 2011 by Abhinav S
Saving to the database is easy. Have a WCF service that you talk to.Allowing all clients to know that there has been a change in the database is trickier.You need to implement a notification mechanism using duplex mechanism calls[^] or sockets.
10 Feb 2011 by Abhinav S
This[^] may help.
13 Feb 2011 by Abhinav S
You need to use binding as demonstrated below.Also, see here[^].
16 Feb 2011 by Abhinav S
Tryhttp://smehrozalam.wordpress.com/2009/02/04/deploying-a-silverlight-application-and-wcf-service-to-iis/[^]http://forums.silverlight.net/forums/t/19021.aspx[^]
22 Feb 2011 by Abhinav S
The datagrid has a selecteditems property - see here[^].
22 Feb 2011 by Abhinav S
Modify the style to remove the row headers on the left.Hide the TopLeftHeaderTemplate template (by sitting the visibility to collapsed) and yoo should get the desired results.
22 Feb 2011 by Abhinav S
unfortunately your question is not very clear. Are you looking for page naviation [^]in Silverlight?
23 Feb 2011 by Abhinav S
I think you need to start with the basics in Silverlight.Pick up a book or go through some online videos / msdn etc.
27 Feb 2011 by Abhinav S
Have a look at this[^] discussion.
28 Feb 2011 by Abhinav S
Add a new item to your datasource collection i.e. list.If you have done your binding correctly, a row will get added automatically to the datagrid.
1 Mar 2011 by Abhinav S
Have a look at this discussion thread[^]. There are some links in this discussion that might be useful to you.
1 Mar 2011 by Abhinav S
Silverlight does not support forms authentication and authorization like ASP.Net does.If you want to do this, then you will still have to do this in ASP.Net.
8 Mar 2011 by Abhinav S
Make sure the URL to the web service is correct on the server.You will need to keep the URL dynamic (as in load from a text file or database) so that you can change this as and when required - without compiling your code.
12 Mar 2011 by Abhinav S
Have a look at msdn documentation on this here[^]. Scroll down towards the end of the page and you will find it.
27 Mar 2011 by Abhinav S
Have a look at http://www.cjcraft.com/Blog/2007/05/08/HowToConfigureIIS50AndIIS60ToDeploySilverlightApplications.aspx[^].
3 Apr 2011 by Abhinav S
You cannot bind to the sql server database directly.You need a web service that will allow the Silverlight client to get data for the database asynchronously and then display it here.
19 Apr 2011 by Abhinav S
You need the RIA services installed. See the prerequisite section in this article[^].
13 May 2011 by Abhinav S
I went through your code but could not see you do something like _items.Add(cust);.You should be adding the new customer instance that you create to the _items collection.
18 May 2011 by Abhinav S
You might want to go through Mike Taulty videos here[^].
22 May 2011 by Abhinav S
See below - http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/12/28/silverlight-4-yet-more-on-capturing-video-from-webcams.aspx[^]http://www.silverlightshow.net/items/Capturing-the-Webcam-in-Silverlight-4.aspx[^]http://www.silverlight.net/learn/quickstarts/webcams/[^]
5 Jun 2011 by Abhinav S
Yes you can. See Silverlight Menu[^].
21 Jun 2011 by Abhinav S
You can make any shape that you want in Silverlight - see here[^]. You dont need to change the shape of the canvas to do this. The canvas will act as a placeholder for any shape.
13 Jul 2011 by Abhinav S
You need to add references to the appropriate toolkit dlls (i believe a reference to Microsoft.Phone.Controls.Toolkit should be enough but I may be wrong).
17 Jul 2011 by Abhinav S
One way to do this is to pass a secure token or key which is shared across the client or server.The algorithm that generates the key is shared across both so that the server understands the key sent by the client.This could help you get started - Client/Server Encryption plus...
17 Jul 2011 by Abhinav S
You can make the Itemspaneltemplate of the ItemsControl you bind to horizontal.This should give the desired effect you require.Something like
7 Aug 2011 by Abhinav S
Have a look at the save file dialog[^] in Silverlight.I've provided one link - if you search on the internet, you should find some more informaiton.
27 Aug 2011 by Abhinav S
Check outhttp://www.telerik.com/products/fdeck.aspx[^]http://www.redmondpie.com/download-silverlight-4-facebook-client-for-windows-and-mac-9140389/[^]
28 Sep 2011 by Abhinav S
Readhttp://w...
12 Oct 2011 by Abhinav S
Add a Footer Row to a Silverlight 3 DataGrid[^] might give you an idea.Instead of sum columns just place edit buttons.
8 Dec 2011 by Abhinav S
Looks like you missed upgrading some dll reference.Post the code which throws thise error and someone might be able to help you.
10 Dec 2011 by Abhinav S
Is there ResultList too large? You might want to play around with the maxbuffersize attribute[^].I don't see any other problem with this code. Try to check if there is a return value in getData() in your service.