silverlight

ADO Entity SubmitChanges not submiting

I am using a Domain Service Class linked to a Linq-to-Sql Context. Using breakpoints it successfully Adds, context.Company.Add(NewCompany); Am calling this from Silverlight,but the saving part seems to fail... context.SubmitChanges(); As in, I get no errors, nor does it add to the database. All my tables have a relation to each oth...

Silverlight listbox won't update with new itemsource

I have a listbox which is bound to a generic list, whenever I removed an item from the generic list and rebind it to the listbox it still shows the deleted items. Here is the code : InventoryList.Remove(currInv); lstSubMenu.ItemsSource = InventoryList; lstSubMenu.DisplayMemberPath = "Inventor...

Looking for silverlight tree control sample with binding to table

I can't find an example of a silverlight 2 tree control that is bound to a database table. I have a table with ID and ParentID columns and I use it to populate a tree control in windows forms. I want to do the same with a silverlight tree control but I can't find any examples on how to do this. Most of the samples have the nodes hard cod...

Does XamlWriter exist in Silverlight 3?

I'm trying to write out an object in Silverlight (2) as Xaml. http://www.codeplex.com/silverlightcontrib won't work for me because it's not a FrameworkElement that I'm dealing with. Does anyone know if XamlWriter exists in Silverlight 3? ...

Silverlight Transitions effects telerik demo how-to?

I would like to achieve an effect and I have no clue as to how to start. Within terelik's silverlight demo, when you select one of the options from the menu on the left, the main section depresses and then shifts over to the left and a new section is then displayed. I would like to do something similar. I plan on creating a small user ...

Silverlight + smart client operations in one service?

For my project's web services I want to support desktop clients and silverlight clients. Should I write a separate web service for each or put all the operations in one service? If I put them all in one, I have to go with basicHttpBinding. The winforms app uses wsHttpBinding now, what do I lose going with basicHttpBinding? ...

Silverlight 2.0 with IE6 + compression bug

Our silverlight application will not run on IE6 if we have IIS dynamic compression On. However If we turn compression off the site works. Turning compression off is not an option for us. We have tried everything in the post http://otoole.wordpress.com/2009/03/10/18/ but it didn't fix the issue. The problem does not occur on IE7. It ap...

how to pass the same viewmodel to a child view using unity?

Hi there, I have a business object, lets say customer, it has too many fields to show in one page, so I'm splitting it to different tab pages. the data is not in a way that I can split it into meaningful bits (like address, having state, street name and so on), so I decided to keep the same model and view model and have different views ...

Host Silverlight in the Windows.Forms without the WebBrowser control

Is it possible to host Silverlight in the Windows.Forms without the WebBrowser control to avoid unnecessary COM marshaling? EDIT: The goal is to use a rich graphic content like WPF or Silverlight on older platforms like Windows 2000. ...

Silverlight on OSX, does it mean Microsoft ported a large amount of .NET Framework to OSX?

Silverlight works on OSX and Silverlight uses .NET Framework (at least a large portion of it). Does it mean Microsoft actually ported .NET Framework to OSX but doesn't tell us? Or do you think we can accept an official .NET Framework for OSX any time soon? ...

What's the best idea to manage resources in Silverlight?

I need to create my silverlight framework that has all following features about resources. Partial loading. So, I can't use sample resource file(*.resx). Strongly-typed resource file. Because It's very easy to debug. Easy to edit with sample text editor. Because you can't use some complex editor like visual studio in web server. Easy t...

Silverlight - Space above/below TreeView items

I'm trying to reduce the amount of space between TreeView items to fit more vertically. I'm guessing that it's a matter of styling the ItemContainer Style or ItemContainer template in the TreeView, but I can't seem to get at the correct properties. Can anyone point me in the right direction? ...

In Silverlight, do InvalidateMeasure and InvalidateArrange always force a Measure/Arrange pass?

I've got a project with some custom attached properties on a UserControl. When these properties change I want to trigger a layout pass because some part of the UserControl changes in response to this property changing. In my user control, I've overridden MeasureOverride to update my shape, and this gets called when the page first loads,...

Silverlight button style

I am trying out new styles with silverlight, and I created a new button skin with blend that consists of a border and a textblock. Wondered if there is a way to change the the text of the textblock when the the button's content(text) property is changed. ...

calling https wcf service from silverlight...

hi, i am trying to access a https wcf service from silverlight. the clientaccesspolicy is placed on service root and i have validated through silverlightspy its showing it as valid and calls allowed. i am able to call that webservice successfully from desktop client but when tries to call from silverlight it throws an error that call to ...

Silverlight - Space between top of TreeView and first TreeViewItem

I have a corollary question to This one. How can you change the spacing between the top of the TreeView Control and the first TreeViewItem? Specifically, I want to REDUCE the space between the top of the control and the first item. As with the other question, I'm guessing that I'll need go restyle the TreeView. But, what style do I nee...

Silverlight Project -Expression Blend

Is there a way to apply bitmapeffects within a silverlight web project. ...

How do I build a paged ItemsControl or Panel with a repeating header?

I'm trying to build a Panel or ItemsControl that will display items in the form of: Header 1 Sub Item 1 Sub item 2 Sub Item 3 Header 2 Sub Item 1 Sub item 2 This is easy enough, but the catch here is that I need to be able to split the items in a Paged fashion. Based on the height of the control, whatever does not fit will be o...

Importing WMF (Windows Metafile) or any other vector file into a silverlight project

Is it possible to import WMF (Windows Metafile) or any other vector based file into a silverlight project? ...

How can I get a transparent background for a DataForm in Silverlight 3?

I can't seem to get a transparent background for a DataForm in Silverlight 3 beta. The code below is what I am trying but it only makes the background partially transparent. Is there something I can do to fix it? <Grid x:Name="LayoutRoot" Background="Orange"> <Border Background="Blue" Margin="100,0,0,100"/> <Controls:DataForm ...