silverlight-4.0

Launch silverlight application out of browser

Hi, I'm using sllauncher.exe to execute a local silverlight 4 application, but the launcher show the next error: Invalid parameters. How can I execute a silverlight application out of browser? Thanks ...

Silverlight App. with OOB hangs/waits with Secure WCF Service

Hi all; I have an SL 4 application (with OOB and elevated privileges) which makes a connection to a secure WCF service. But WCF service is never called, the application waits to connect and afterwards timeouts. I have checked with fiddler and wireshark and I saw no connection is made, application just waits! As you know if elevated priv...

Bing Maps Silverlight Control: How do I Display the Sun's Footprint?

Hello, I have the Sun's latitude, longitude, and altitude but I don't know how to display the Sun's footprint in a particular time as in http://www.karhukoti.com and http://www.timeanddate.com/worldclock/sunearth.html. Can someone please help? Thanks. Edit: I downloaded the source code for JSatTrak and tried to implement the drawF...

How to get mouse captured element.

I need to get mouse captured element to ReleaseMouseCapture for it. I have a problem with cancelling MouseLeftButtonUp event when element is already pressed. I need to cancel it before execution MouseLeftButtonUp. ...

How to pass credential when call web services or access another website in SL 4 app?

In SL 4 app, it could need to access web services or pages on another remote site. Suppose the Web app to host SL4 app is runing on IIS and use windows authentication, then the app need to access web services on another website which use same domain account from AD. How to pass the user credential when using WebClient to access the web...

Custom Silverlight cursor

Hi, How can i create a custom cursor in silverlight? Is there method other than showing\hiding canvas containing the image of the custom cursor? Is there a professional way to do it? ...

Does Silverlight 4's WriteableBitmap *really* cripple legit cross-domain access in the name of DRM?

In this thread from a year ago it's explained that WriteableBitmap will block read access when any part of it comes from an outside domain - say a free image server. It's further elaborated upon that this is for "DRM". I guess there's some big threat of someone writing a movie-ripper in Silverlight that includes a movie from another do...

Busy indicator for WCF async calls in Silverlight 4?

Hi Guys, I have a SL4 app consuming WCF services. The client make async call to the services, during this time I would like to show some sort information or busy indicator on the screen which tells the users that the app is doing something. Now I am pretty sure SL4 has something like this, but I am drawing a blank.... Can someone plea...

XmlnsDefinitionAttribute combined with x:Name causes compilation error with code generation

I have and issue with using the XmlnsDefinition attribute within a silverlight 4 assembly. Here's the test case: In AssemblyInfo.cs of the silverlight project I add the following: [assembly: XmlnsDefinition("urn:foo", "SilverlightApplication1")] [assembly: XmlnsDefinition("urn:foo", "SilverlightApplication1.SomeNamespace")] I edit M...

silverlight invokescript security issue

I am trying to run the demo application found at: http://msdn.microsoft.com/en-us/library/cc491132%28v=VS.95%29.aspx I have everything on my local computer. However when I try to the invoke script command I get the following error: {System.Security.SecurityException: Attempted to perform an unauthorized operation. at System.Window...

XAP files for silverlight 4

Can you imbed silverlight 4 xap files into an aspx page and then view them in vs 2008? If so how do you do this? Any sample code would be appreciated. Thanks! ...

Silverlight ScrollViewer or HorizontalScrollBar

I have ScrollViewer and child Stack panel. I need my HorizontalScrollBar automatically scroll right when content added. How to do this? Items to stack panel added dynamically. P.s. i am trying to use this.scrollViewer.ScrollToRight(); but it not always scrolls to end. ...

Silverlight 4.0 Accordion Template

Hi, Is their a free template of accordion which behaves like Outlook? When the user adjusted its grid, the accordion item will form an images, stack horizontally? Thank you in advance ...

StaticResource not found

I have the situation where a SolidColorBrush (defined in App.xaml) cannot be resolved during runtime, when i use the Brush in a Style as StaticResource. During designtime (using Visual Studio 2010) the brush is found, cause when i change the color of the brush the UIElement with the styles are updated with the new color. During runtime...

Upload Photos using Silverlight - Ria Services

Hello friends , i'm trying to find a good exemple on uploading and downloading images using solely Silverlgith + Ria Services, i tried to find some but i failed, please any help would be appreciated. thank you all in advance ...

SIlverlight 4, FilterDescriptor and GUID as FilterOperator

Hey guys, as seen in this post, GUIDs are not supported by the FilterDescriptorts FilterOperator. Has anyone encountered this problem? Is there a workaround? Because, well it pretty much sucks (no filtering by foreign keys and so on... which is quite common). ...

Getting Silverlight MVVM working with Expression Blend design time data?

I am a big proponent of the MVVM pattern with Silverlight. Currently I wire the ViewModel up to the View by newwing up the ViewModel in the code behind of the view, thusly: public partial class SomePage : UserControl { public SomePage() { InitializeComponent(); // New up a ViewModel and bind to layout root ...

How to - each RadComboBox in column inside RadGridView with unique data?

Hi there. Here is what I want to achieve: I have RadGridView, let's call it gridView, with two columns - first contains ordinary text (GridViewDataColumn), second is a GridViewComboBoxColumn. Each row consist of property (first column) and possible values (displayed in comboBox in second column) which vary for each property. For example...

Creating a custom usercontrol in silverlight with a string containing class name

Righty oh now I have a string which contains the name of a custom control class eg "MyBaseControl" which in code its code file looks like public class MyBaseControl : UserControl I need to create an instance of this control using the string i recieve and add it to my page, i believe its something to do with var fieldControl = (UIEle...

Get maximum Rectangle placed within Polygon or Path

How to get maximum Rectangle that can be placed within Path or Polygon. I need some functionality to get it. ...