silverlight-3.0

Tuning Silverlight's DataForm

I'm designing data-oriented application in Silverlight 3 and I'm wondering if is it worth using new DataForm control. It looks really awesome on PowerPoint slides but I have no idea how it is in real life. I need to achieve following behaviours: group model's fields to areas, for instance separating groups using horizontal lines or na...

Silverlight WCF service

I am trying to upload a WCF(Service1.svc) to my godaddy hosting account. When I type in the address of the service(http://www.domain.com/Service1.svc) I get a 404 not found error. What I'd like to know is what are all the files I need to upload to get it working? Also what should my directory structure consist of? ...

How can I know if two rectangles collide in Silverlight 3?

I have program where you cannot place rectangles over each others, so how can I check if rectangles collide? Is there some kind of function for this or do I have to make my own? ...

How can I get objects from ASP server to my Silverlight 3 app?

I have little Silverlight app that needs to make quries to server, is it possible to return objects to silverlight app or how can I communicate with server? ...

Is it possible to display a message or default row in a Silverlight 3 Datagrid

I have a DataGrid which is bound to a PagedCollectionView and the underlying collection may contain no items. When this occurs the DataGrid does not render at all, no column headers or anything, and when the DataGrid is then re-bound to another PagedCollectionView that does contain some items it causes a system error System.ArgumentE...

Silverlight grid with auto width and height

Silverlight virgin here. How do I make the usercontrol surrounding my grid automatically resize to accomodate the grid width inside? Currently the usercontrol is displaying at about 300 or 400 pixels when the browser window is much wider. It renders both vertical and horizontal scroll bars around the data grid which is ugly. I want to se...

Listing Attached Properties in Silverlight

Anybody know how to list the the attached properties that have been set on a UIElement in Silveright 3? Plenty of WPF solutions as usual! Cheers ...

Silverlight Prism - Loading module(s) after successful login/dependencies between modules

I have a Silverlight Prism application that includes a toolbar module with login controls. I currently have a module in the main region set to InitializationMode.OnDemand in the Bootstrapper and can load it via ModuleManager.LoadModule() after a successful login in the toolbar module. However, this doesn't feel right as it's essentiall...

Setting Silverlight DataGrid to just throw an exception when binding field does not exist

I just wasted invested a good chunk of time trying to determine why a specific datagrid among many was showing shrunken rows with no text. After many trial and errors attempts to figure out what made this grid special, I finally found that the class used for the row items was marked private. That is a perfectly good reason, but I would...

silverlight textbox scrollbarvisibility

I have a text box with verticalscrollbarvisibility set to auto. I would like to do a test to find out if the scrollbar is actually visible during runtime. I have tried the statement: if (textbox1.VerticalScrollBarVisibility == ScrollBarVisibility.Visible) but it does not work. Any ideas? ...

Hosting Silverlight Out of Browser Application in Sharepoint 2007

I am trying to host a Silverlight 3 Out of Browser Application in Sharepoint 2007. My application gets displayed fine; but when I install it as out of browser; and try to run it from desktop; only blank screen is displayed and nothing happens onwards. The XAP file is kept in _layout/MyFolder/MyApp.xap (Under 12 Hive). Am I missing anyth...

Silverlight Relating Two Datagrids

Hi, My question: How do I bind the SelectedItem from a primary datagrid to the ItemsSource for a secondary datagrid? In detail: I have two datagrids on my view. The first shows a collection of teams and the second shows as list of people in the selected team. When I select a team from the grid I can see that the SelectedTeam propert...

where did PixelFormats and WriteableBitmap.Lock go in Silverlight3?

A few months ago I built some online samples like this one from Jeff Prosise that use the WriteableBitmap class in Silverlight. Revisiting them today with the latest Silverlight3 installer (3.0.40624.0), the API seems to have changed. I figured out some of the changes. For example, the WriteableBitmap array accessor has disappeared,...

Declaring list and binding property values via XAML for a custom silverlight control

I feel like I've missed something obvious, but when creating a custom control in Silverlight I can declare properties as public and they will be exposed when making XAML declarations, so I can easily do something like this: public class MyControl : UserControl { public string Title {get; set;} } And this: <local:MyControl Title="...

How do I show only the graph of a chart (No Legend, No Title, Minimum Space Used) in Silverlight 3.0?

I'm writing a Silverlight application that is showing a pie chart of completed items as an item in a DataGrid. I currently can get the graph to show as an item in the DataGrid using a DataGridTemplateColumn. My problem is the grid blows out the height of the data row because it has a title and a legend and a lot of allocated whitespace...

Datagrid cannot sort on some fields - object, object subfield, base type

When using the Silverlight DataGrid with an IList derived data source it is possible to click a column to sort by it, assuming the CanUserSortColumns/CanUserSort properties are not false. However I'm finding some edge cases cannot be sorted by - the values are shown, but clicking the column has no effect. The first edge cases would see...

cross-domain problem

Hello, I am using a silverlight with wcf and when I use the .web project then it runs but when use the silver light project to run the following exception throws: An error occurred while trying to make a request to URI 'http://localhost:9000/Services/BLWCFSvrc.svc'. This could be due to attempting to access a service in a cross-domain ...

How to retrieve the querystring in a Silverlight class library?

I'm Buiding a Silverlight 3 class library that needs to get a hold of the querystring. Now I know that in a SilverLight app, you can get a hold of it via the HtmlPage class. This doesn't work for a Silverlight class library. In a class library used in ASP.NET you could get hold of the current context through HttpContext.Current. Does Sil...

Silverlight - Binding an image which is using https

I have an image stored which I can view in a browser using http and https. However, when I bind these url's to my image source I can only see the one which uses http. Any way for silverlight to support https images? ...

Silverlight Button Content Click

Hi all, I have a simple button with some content. With my content though, the button click event doesn't fire if you click on it. You need to click on the small border (which is the button behind the content) to fire the event. What's the solution? Thanks in advance. <Button x:Name="btnAddFriend" Width="64" FontFamily="Fonts/Fonts.zip#...