Click here to Skip to main content
15,888,454 members
Everything / Silverlight

Silverlight

Silverlight

Great Reads

by Alan Beasley
Explanation and examples of Additional Templates and Generated Content of a ListBox. Covering Layout, Transitions, and Animation.
by defwebserver
How using the Silverlight DataTrigger allows you to run a process and then raise another when using View Model (MVVM)
by Ajcek84
Open source library for music engraving in desktop, mobile and web applications
by Todd Davis
How to bind an enum to radiobuttons in Silverlight/WPF

Latest Articles

by OwenDavies
How to implement a crossdomain.xml file to allow the Flash client to connect to my site
by Ajcek84
Open source library for music engraving in desktop, mobile and web applications
by webmaster442
How to format your XAML documents for effective version handling & maximum maintainability
by epicTurk
F# Quotations support for ViewModelSupport.ViewModelBase Property get\set Accessors

All Articles

Sort by Updated

Silverlight 

30 Mar 2010 by #realJSOP
Go here: Silverlight Toolkit on CodePlex[^]
22 May 2010 by #realJSOP
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
21 May 2010 by #realJSOP
Dorothy was right - there's no place like home.
22 Apr 2010 by #realJSOP
Well, it looks like you have all of the information you need to debug the problem. It might be easier if you take all the code and put it into a console app so it's easier to run through the debugger.
22 Apr 2010 by #realJSOP
You can't specify parameters on event handlers like that.Since you know what control posted the event, you can simply rerfer to that control in the event handler. private void cmbControl_Open(string strControlName){ this.cmbStatus.DisplayMemberPath = "Field";}
1 May 2010 by #realJSOP
Google is your friend. I found this with almost no effort. There are thousands of other hits.http://weblogs.asp.net/olakarlsson/archive/2008/03/13/building-an-animated-menu-with-silverlight-2.aspx[^]
21 May 2010 by #realJSOP
Make interfacing with your web service simpler and more maintainable
21 May 2010 by #realJSOP
Follow these guidelines for trouble-free dictionary merging in Silverlight
22 May 2010 by #realJSOP
In WPF/Silverlight, you might want to bind to a dictionary. Here's a couple of websites I found.
25 May 2010 by #realJSOP
The easiest way is make your collection an ObservableCollection (and possibly INotifyCollectionChanged), and the items derived from INotifyPropertyChanged. With some minor additional code in the collection and data items, all you would have to do is bind the collection to the datagrid and the...
25 May 2010 by #realJSOP
You have to write the web service, add a reference to it in your Silverlight application, and then use it like you would from any other .Net application. You do have to create a ClientAccessPolicy.xml file in the web service so that Silverlight can use to it.Once again, Google is your friend.
25 May 2010 by #realJSOP
0) You could create a delegate that points to a method in page #1 and that is called by page #2. the method connected to the delegate could actually return the collection that's bound to the datagrid in page #1.1) You could make the datagrid global to the application so that any component in...
27 May 2010 by #realJSOP
With some earlier design forethought, I was able to inject some significant code optimization into a current project.
3 Jun 2010 by #realJSOP
Did you create your web service correctly? If you're doing a WCF service, you have to first create a .net web service, and then within that project, you have to create a Silverlight-compatible WCF service.
5 Jun 2010 by #realJSOP
I think waht you want is the WriteableBitmap object. You can darw on an existing bitmap pretty easily once you know all the rules. Google is your friend (I played with WriteableBitmap a few weeks back, and I know you can do it, but I don't remember the specifics).
9 Jun 2010 by #realJSOP
The Silverlight navigation app ErrorWindow exposes the last exception thrown, but doesn't show the INNER exceptions. Here's how you can do it.
19 Jun 2010 by #realJSOP
What to do if you want to resue a style for more than one component of a particular type on a given Silverlight Page
22 Jun 2010 by #realJSOP
Don't know if it will work, but try this:Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=local:Pod.Title}">
28 Jun 2010 by #realJSOP
Why reinvent the wheel? Using ffmpeg (from the commandline) is probably the best way to do it right now. I've done it on web sites, winforms apps, and windows services. It will certainly take less time to implement (I'm not entirely convinced you have the programming chops to implement this on...
7 Jul 2010 by #realJSOP
You could put tabs into "categories" and sort on categories first, and then by some other indicator. Set the the desktop tab to be in catehory 0, and all others into category 1.
21 Jul 2010 by #realJSOP
Something like this: html, body { height: 100%; overflow: auto; } body { padding: 0; margin: 0; } #silverlightControlHost { height: 100%; text-align:center; } ...
21 Jul 2010 by #realJSOP
You may have to change the max buffer size in your service web.config.To upload multiple files, simply call your web service for each file.
23 Jul 2010 by #realJSOP
You can't load files from the client's machine. The error message is telling you that.
24 Jul 2010 by #realJSOP
It's only supported in Silverlight 4, and only if your Silverlight app is running out-of-browser. There are ways to kinda do the same thing if your app is running in the browser, just google "silverlight WebBrowser", and you'll get over 6.3 million results returned. The first one is...
24 Jul 2010 by #realJSOP
You don't need INotifyPropertyChanged. Just create a static class that holds the data, set the data from the main page when the user logs in, and you can then refer to it from any point in the application.
30 Jul 2010 by #realJSOP
No, but you can write conditional code in the code behind that sets styles or in converters that set properties.We don't have conditional stuff in our code, but pretty much the entire layout/content is determined after reading database settings, and that's how we do it.
12 Aug 2010 by #realJSOP
Get around another irrational and arbitrary omission in Silverlight
12 Aug 2010 by #realJSOP
If you need to get the position the mouse was clicked, in relation to a specific UI Element, this might help
13 Aug 2010 by #realJSOP
It's called Visual Studio. That's how you "make" the applications.
18 Aug 2010 by #realJSOP
This question is too broad to be considered a "quick" question. I suggest you take a class on Silverlight, or buy a book. Then, try writing the code yourself. When you run into problems that you cannot solve via a decent attempt at googling the answer, then - AND ONLY THEN - come back here and...
3 Sep 2010 by #realJSOP
Put the image in a Viewbox control, and set the Stretch property to "Fill"
9 Sep 2010 by #realJSOP
Set the minimum axis value to something less than 0 (the lowest value that your data represents + 1).
20 Sep 2010 by #realJSOP
You can't do it. Silverlight requires some form of web service to connect to a database. Period.
20 Sep 2010 by #realJSOP
make the login part in-browser, and the rest out-of-browser (probably as a separate application).
29 Sep 2010 by #realJSOP
When you google "silverlight isolated storage", you get back 34,000 results.
4 Oct 2010 by #realJSOP
In order to work on the latest version of Silverlight, you have to be using VS2008 or higher.If you insist of using Silverlight 1.0, check these links,...
8 Oct 2010 by #realJSOP
Have you added a project reference to the VotingPanel2 namespace?
11 Oct 2010 by #realJSOP
If you hard-code the entire URL to the place you want to go, does it work?If so, you can get the url to the current silverlight page and parse/modify it appropriately
21 Oct 2010 by #realJSOP
You might be trying to use a resource that does not exist (hasn't been defined in your XAML). I get those kinds of errors when I spell a resource name incorrectly. Remember - all names are case sensitive.
28 Oct 2010 by #realJSOP
Just install it, and it will register itself in the GAC. Once it's there, you can add references to the assemblies in your own apps.It's just like any other 3rd party library for .Net.
24 Nov 2010 by #realJSOP
Without seeing your .clientconfig file for your Silverlight app AND your web.config file for your service, we really can't help you.
1 Dec 2010 by #realJSOP
Are you even remotely self-aware? Do you need constant instructions regarding simple mechanical skills like breathing?Visual Studio is a development tool. Silverlight is a platform for wich applications are created - USING VISUAL STUDIO.
9 Dec 2010 by #realJSOP
Fromt eh aspect of both security AND performance, that's highly inadvisable. A web server should just be web server.
14 Dec 2010 by #realJSOP
I don't think you can do that unless that Silverlight app itself is running out-of-browser.EDIT ==================Why was this voted a 1? Was I wrong? Did you just not like the answer?
23 Dec 2010 by #realJSOP
First, WHY are you creating the ChildUserControl in another object from outside that object, when it's obvious that the Popup is a homegrown object? The only time you should do that is if you don't have the sopource code to the parent object.Second, when do you want MainPage to know about...
4 Jan 2011 by #realJSOP
Make sure you have a crossdomain.xml file, as well as a ClientAccessPolicy.xml file for your WCF service.Also, make sure your endpoints are correct in your silverlight app's ServiceReferences.ClientConfig file.
7 Jan 2011 by #realJSOP
Maybe you don't have GPU acceleration enabled.Set App.Current.Host.Settings.EnableFrameRateCounter to true (and hiding the system tray if it is enabled)? If you see the framerate counters at the top of the screen, you have GPU acceleration enabled.
19 Jan 2011 by #realJSOP
You MUST use a web service to interact with a database from Silverlight. This link should get your started:http://msdn.microsoft.com/en-us/library/cc197940(v=vs.95).aspx[^]
19 Jan 2011 by #realJSOP
Google is your friend ("embed silverlight in web page"). This is just one of the hits returned:http://www.switchonthecode.com/tutorials/how-to-embed-silverlight-into-a-webpage[^]
20 Jan 2011 by #realJSOP
If you google "C# send mail", you'll get 708 thousand results back. Here's a code snippet from one of them.try{ MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.yourdomain.com"); mail.From = new...
22 Feb 2011 by #realJSOP
I'm using the DataVisualization namespace in the Silverlight Toolkit. I'm trying to figure out how to create a custom tooltip. I've overridden the datapoint template, and I know where to do what I want to do, but not exactly how to go about doing it.Essentially, I want to show the series...
18 Feb 2011 by #realJSOP
I'm with Sandeep on this. It's pointless, which means it's not sensible. Silverlight is a web technology and is hosted by a web site. You don't "install" xap files on a desktop.
22 Feb 2011 by #realJSOP
01/17/2011 08:00 (SOLUTION) ===========================================================================ATTENTION! Please do not delete this as I am testing Codeproject site functionality regarding posting solutions to your own questions. Many...
23 Feb 2011 by #realJSOP
Is it a separate app, or just a page in a silverlight library in your app?If it's a page in your app, you need a UriMapper element in mainpage.xaml.If it's a page in a completely different app, you probably have to just start the extrenalk app with an appropriate querystring that will...
7 Mar 2011 by #realJSOP
Extension method that checks for a properly Xaml-ized string
11 Mar 2011 by #realJSOP
It generates a XAP file witch is nothing more that a ZIP file with a different extension. Your actual SilverLight app is one or more DLLs contained in the XAP file. The XAP file serves as a convenient delivery vehicle for multiple files.
18 Mar 2011 by #realJSOP
Try this link:http://tothsolutions.com/Blog/post/Animating-Page-Transitions-in-Silverlight-3.aspx[^]
18 Mar 2011 by #realJSOP
Instead of getting the red circle, I get the hollow circle with an exclamation point icon, and when hovered, it says:This breakpoint will not currently be hit. No symbols have been loaded for this document.I've tried shutting everything down, deleting the bin and obj folders, and even...
20 Mar 2011 by #realJSOP
I think the best way is to store the browse history in your own list, and then you can just go to the URL at the desired list location. I suppose you could call it a breadcrumb list.
22 Mar 2011 by #realJSOP
I wrote an article about this:How I Optimized my Silverlight Asynchronous Web Service Consumption[^]
29 Mar 2011 by #realJSOP
0) Change your stored proc to change the query based on whether the specified date range results in a single day, or a range of days. 1) Adjust your query so that it's built dynamically, and it either queries for a range of dates, or for a single date, depending on how the specified date...
29 Mar 2011 by #realJSOP
Try using SqlDataReader.BeginExecuteReader. It's the asynch version of ExecuteReader and requires a bit more work pon your part, but it may address your problem. Having X million records to search doesn't help anything either.
4 Apr 2011 by #realJSOP
No. You can't change OS settings from a Silverlight app. Even if you could, it's pretty damn rude and not advisable.
6 Apr 2011 by #realJSOP
What do you mean by "change the resolution"? You mean the size of the page? If so, just change the Width and Height properties to the desired values.
8 Apr 2011 by #realJSOP
While you're searching google for your answer, keep in mind that there are several conditions which must be met in order to get a silverlight app to talk to a WCF web service. When it doesn't work the first time (and it most certainly won't), you'll know what to do more research on.
18 Apr 2011 by #realJSOP
We can only guess at a solution because you haven't really given us anything to go on. Do you get this in the designer, or in the compiled and running application. If you get it in the designer, try removing the DesiredWidth property from the UserControl's xaml. BTW, I found this by googling...
21 Apr 2011 by #realJSOP
It's handled wherever you add a handler. The way you've done it is prefectly fine, if not a little obfuscatory (I prefer defined methods instead of that lambda stuff).
29 Apr 2011 by #realJSOP
If it were me, I'd use Silverlight/RIA Services if a web solution is your only option. Silverlight provides a much richer interface than an asp.net site ever would.HOWEVER, if a desktop solution is possible, I'd probably go that way because that's even better in terms of...
29 Apr 2011 by #realJSOP
Try putting the initialization of db and specialLoans into the constructor.public class wcfSpecialLoansImplementation{ SpecialLoansDataContext db; object specialLoans; public wcfSpecialLoansImplementation { db = new SpecialLoansDataContext(); ...
3 May 2011 by #realJSOP
Perhaps if you left this question in the article's own forum, you'll get help from the author.To get this to work, you have to set the app to run out-of-browser. Did you do that?I found this link on...
9 May 2011 by #realJSOP
For C#:MainPage mainPage = App.Current.RootVisual as MainPage;or for VB:Dim mainPage As MainPage = TryCast(App.Current.RootVisual, MainPage)
9 May 2011 by #realJSOP
Get access to your Silverlight MainPage object
17 May 2011 by #realJSOP
This is how I do it (we determine the host and select the appropriate endpoint).// these are the endpoints define in the webconfig filestring LocalHostEndpointName = "LocalHost_Endpoint";string ProductionEndpointName = "Production_Endpoint";string CurrentEndpoint = "";//...
19 May 2011 by #realJSOP
So save the SelectedIndex and SelectedItem properties BEFORE calling the web service, and in the async completed event hander, restore the selection.*added* Just use the SelectedItem, as the index may change with the new data set.*added by edman196* : As OP pointed out, SelectedItem is...
24 May 2011 by #realJSOP
You could create a single assembly with all of the resources in it, and load that one assembly whenever you need it in the other assemblies. That's the way I'd do it.
24 May 2011 by #realJSOP
Silverlight doesn't have session variables. If you want to get the host asp.net web sit'es session variables, a simple google search would have revealed this:http://forums.silverlight.net/forums/p/18160/61502.aspx[^]Look at Yi-Lun's response (it's rather long but very complete).
26 May 2011 by #realJSOP
I would add a query string element to toNavigate that the page could use to say "hey, this is coming from the silverlight module, so I need to do something a little differently".
31 May 2011 by #realJSOP
The WebBrowser control isn't available in Silverlight2 (or 3).*Edit by msalsbery* There's no reason to be using Silverlight 2. In Silverlight 4 there's the WebBrowser element[^]
13 Jun 2011 by #realJSOP
I think you have to change the major axis value to be the number of legend items you want displayed.
14 Jun 2011 by #realJSOP
LEARN HOW TO USE GOOGLE20.1 MILLION Google results for "what is use silverlight"[^]
14 Jun 2011 by #realJSOP
The things you have to check are extensive, and since I'm afraid I'll forget a step, here's some help:9 MILLION Google results for "deploy silverlight2 and wcf"[^]The first result returned is someone that appears to have the same problem as you.
16 Jun 2011 by #realJSOP
Google reveals all:3.9 MILLION google results for "windows media player silverlight"[^]
24 Jun 2011 by #realJSOP
0) The code you've shown does absolutely NOTHING to allow us to help you with your problem.1) What do you mean by "replicates the data"?2) What does __searhCriteria() do?3) Have you considered running the app under the debugger to see WHY the behavior you're seeing is...
30 Jun 2011 by #realJSOP
You probably have to set the selected item in the Accordion control itself (as opposed to setting IsSelected on the item itself.
8 Jul 2011 by #realJSOP
You cannot access the client side file system from a Silverlight app unless it's configured to run out-of-browser. Even then, you can only access a special folder created on the client system. It's a security thing.
20 Jul 2011 by #realJSOP
well first, I would do this:if (_area != null)before trying to use it for anything.Second, set the debugger setting that allows you to trace into the framework code so you can see what the LongListSelector.Balance() method is trying to do. That might steer you towards solving the...
25 Jul 2011 by #realJSOP
Why don't you ask these questions on ComponentOne's own forums?
26 Jul 2011 by #realJSOP
Have you considered asking this question in ComponentOne's own forums?Your last question garnered the same answer from me, and you stated that their forums appear to be down, yet when I tried to view them, I didn't have any problems:http://our.componentone.com/groups/[^]
3 Aug 2011 by #realJSOP
What you're trying to do is impossible. Think about it. A web service truns on the server. If you put the Process code in the web service, it's going to try to open Notepad ON THE SERVER.I'm not even sure you can use the Process object in a silverlight app, either.
6 Aug 2011 by #realJSOP
Assuming you're at least moderately conversant in your language of choice, as well as .Net in general, so all that remains is learning the Silverlight-specific part, the best way to learn a new technology is to jump into the deep end of the pool, and just start coding, and keep your browser on...
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;
17 Aug 2011 by #realJSOP
Try removing "All" from the dataset BEFORE binding it to the combobox.
1 Sep 2011 by #realJSOP
It's a simple matter of starting a new Silverlight navigation project. It adds everything to your app that you need to get started.
8 Sep 2011 by #realJSOP
MVVM is not platform dependent. If you google MVVM, you should get a LOT of references. 109,000 google results for "c# silverlight mvvm codeproject" [^], and this is the very first result returned:MVVM Silverlight 4.0 Simplified[^]
13 Sep 2011 by #realJSOP
Code and data.Suggested link [^]
19 Sep 2011 by #realJSOP
0) Sometimes MIME types disappear from IIS if you upgrade .Net on the server. Verify that they are in fact there, and ythat they ware correct.1) Verify that the path is correct in the aspx file that loads the silverlight app. If you're missing the tilde, it will fail. It should be something...
29 Dec 2011 by #realJSOP
0) A RichTextBox doesn't do html. 1) The Silverlkight RichTextBox control isn't really a RichTextBox control. The "rich text" it displays is based on xaml formatting - NOT html.
5 May 2016 by .net developer123456789
how can find download DevExpress.Xpf.LayoutControl.v11.1.dll in Silverlight(C#.net 2015)What I have tried:how can find download DevExpress.Xpf.LayoutControl.v11.1.dll in Silverlight(C#.net 2015)
5 Jan 2015 by .Net Jim
Appeal to Silverlight senior coders out there. I am a .Net developer with a few years of ASP.Net and a year or so Web Forms, and 6 months of Silverlight and WPF.I have a datagrid on a tab in silverlight that must total itself based on check columns selected. Columns are annual budget...
18 Jan 2015 by .Net Jim
I know that silverlight is having some problems right now. It depends on which version you are running. The thing about upgrades is that you may not be able to uninstall completely and an upgrade or running tools can ruin your compatibility with older systems. I can tell you that my Win 7 64...