silverlight

Paginated Grid in Silverlight?

I have a grid (not data grid) in Silverlight that I build in memory. I want to be able to pass the grid to a method that will return a parent grid with multiple child grids containing the children in the original grid. The method should split the original grid up into multiple grids whenever the total height of the children in the grid...

Web services and methods with array parameters

I'm trying to wrap ReportExecution2005 from SQL Reporting Services so that I can domain authenticate on behalf of a Windows Auth Services login. ReportExecution2005 defines SetExecutionParameters(ParameterValue[] Parameters, string ParameterLanguage) But when I put an array of any sort, even string[], in a method signature, the serv...

Javascript collapsable menu not visible when appears over Silverlight

Hi all. I'm doing a Javascript menu with collapsable items, but for some days I've unable to make this appear when appear "over" a Silverlight control. Javascript menu uses DIVs to make this collapsable menu but it does't appear meanwhile a Silverlight control is there. Thanks in advance for any suggestion ...

Is calling the SharePoint Web Services from a Silverlight application secure?

In a public internet scenario, is it possible to call the SharePoint Web Services from within a Silverlight application (hosted in the same site)? Is this secure? The SharePoint site is a public-facing one. ...

Sorting Data using Silver light Data Grid control

Hi, I have a grid control in silverlight.I set up pagination for this control.Data is populated from db.I am trying to a sorting on all column headers.However sorting gets applied to specific page and does not apply to entire result set.How can this issue be fixed? Any suggesstions would be of great help. Regards, Pri ...

Uploading file(s) to webserver in silverlight (C#)

Alright, so i have a silverlight application, it opens a filedialog, gets the selected file, transfers it to asp.net which saves it to the server, but i want to know how to implement a progress bar for it. for big files, and multiple file uploads, i will need to know the progress of the file upload to the server, is this possible? ...

Is the PnP WPF/Silverlight Composite Application Guidance appropriate for role-based UI composition?

I'm developing a line-of-business application using WPF, possibly multitargeting SL as well. One of the requirements is that UIs be composed based on user roles/rights. For example, if the user is a salesperson, she shouldn't see any of the accounting components. If the user is an accounting clerk, that user will see some accounting comp...

Silverlight and .NET RIA Services - Managing Users

Hello, I am building a Silverlight 3 application that uses .NET RIA Services. This application is hosted in an ASP.NET application that uses the default aspnet_Membership tables. My Silverlight application requires users to login. If they are a member of a certain role, I want to allow them to manage the application's users. Currently,...

Accessing sharepoint web services in Silverlight app Error

I am currently trying to host my silverlight app on sharepoint in a content editor webpart. But keep getting the error "The remote server returned an error: NotFound". Is this a problem with the SL app not having access to the web service or something else? I have added the clientaccesspolicy.xml file on the root of the site using Share...

Dynamic columns with Silverlight DataGrid

I'm trying to add columns to a Silverlight DataGrid but having problems. In my View (I'm using Prism) I can add the columns in the constructor no problem, this works fine - public MyView() { InitializeComponent(); myDatagrid.Columns.Add(new DataGridCheckBoxColumn() { Header = "HELLO!" }); } However if I attempt to add a column w...

Silverlight WCF deployment Problems

I am running into deployment issues for a SL3, WCF application that runs fine on development machine on built in server as well as deployed on development machine IIS (it is on XP and hence IIS 5.1). Note that the service accesses some data files that are mirrored on dev. server but ultimately has to be using deployment server data. Howe...

Silverlight: Setting ComboBox Background-Color Programmatically

This seems like it's far more difficult than it should be, but I'd like to set the background color of a dropdown combobox programmatically (ie. if the user selects one value, I'd like it to appear red, otherwise blue...) What I've noticed is that if you just set the Background property to a SolidColorBrush, the only thing that seems to...

Silverlight ScrollViewer Not Scrolling

enter code hereI have a ScrollViewer in Silverlight that is not scrolling vertically whenever I call the ScrollToVerticalOffset method from the code behind. Basically, I have my View (UserControl) that contains the ScrollViewer. I invoke an action from my ViewModel that triggers an event in the View's code-behind that sets the Vertical...

silverlight wrappanel does not wrap

I have a itemscontrol with a scrollviewer inside of that I have a wrappanel the thing will not wrap unless I set a width to it. Do I not understand how to use this control? Can I use it without a width? I want it to use stretch auto. ...

Redirect to different domain URL (google app engine logout) doesn't work from silverlight + javascript

Hi, I see the following behavior: When I call javascript XMLHttpRequest/open/send from silverlight, for a URL that eventually causes HTTP redirect to a different domain (logout URL in google app engine), than the silverlight application was loaded from, the browser doesn't follow the redirect. When I go to the same URL either manuall...

How to get StackPanel height before rendering?

Hello! In my software (silverlight 3 application) I create a StackPanel in the code, then add objects to it. Is it possible to get its height before rendering? If I try properties like "Height" or "ActualHeight", it's all zeroes... Thanks! ...

AssociatedObject.FindName in Silverlight behavior OnAttached method returns null

I'm making a Silverlight behavior to enable dragging an element by a contained "drag handle" element (rather than the whole element being draggable). Think of it like a window title bar. In the OnAttached method I am calling: AssociatedObject.FindName(DragHandle) but this is returning null. I then tried handling the AssociatedObject's ...

Solutions for dynamic WCF client proxy in Silverlight?

I currently need to access WCF services from within Silverlight (3.0) application, but I need it dynamic. What I have access to : the service interfaces (ServiceContracts) and data definitions (DataContracts). What I need : runtime generated/created WCF client proxy. Have some solutions? ...

Silverlight: Expose audio with specific start and stop times

From an audio-file I want to be able to expose audio on a webpage, but between specific start and stop times. Say I have a audio-file that is 45:30, for example, and I want to expose it for streaming and download between 7:25 and 8:30, but also between 6:20 and 9:27. What do I need in term of special services, Silverlight-controls and ...

Send attachment with email using WCF

Hello, We need to build an email functionality in our application and the application will be based on Silverlight. In this application user will be able to send the email with attachement. So for this purpose we have realized that we need to build and utilize WCF service which is not a problem. The place where I am stuck is that how can...