silverlight

VS 2008: Launching Silverlight Apps in Debugger: Various Random Errors

Hello. We have been getting a range on infuriating error dialogs using Visual Studio 2008 SP1 when debugging our solution which is a 38 project solution with a group of Silverlight 3.0 projects. These errors are seemlingly random, but they are getting so frequent that it is a serious productivity problem now: I have been starting to get...

Silverlight - Load Image with FileStream

Hello, I have a Silverlight application that I want to show pictures in. The pictures are loaded from a database into FileStream objects. I need to load these FileStream objects into a System.Windows.Image element so they are shown in my Silverlight application. The problem is, I cannot figure out how to set the Source of an Image to a ...

How can I get a Silverlight app to close on a Mac?

I have an out of browser application running in Silverlight. It functions how I want it to when running in Windows. However, it has very strange behavior on a mac. When closing a window on a mac only the window closes the application continues running. Is there some way to get the Silverlight application to close on a mac when the windo...

.NET 4 SDK corrupted? with Silverlight 4 Tools install

I installed Silverlight 4 and now my C# projects that use some of the new .NET 4 classes like System.Threading.Parallel and System.Numerics.BigInteger don't appear to be present. Have tried switching between selected frameworks in the project properties, and downloading and running repair on the .NET 4 SDK, but didn't resolve the issue...

How might I set up data plumbing for Silverlight to MySQL in my situation?

In short: What is a good method for setting up read-only data access from Silverlight to a MySQL database? Here are the details of my situation: I'm currently trying to set up a Silverlight application to present data from a MySQL database. Currently, I need to set-up read-only access to the MySQL database (I may set up other tables ...

WCF Service invalid with Silverlight

I'm trying to get WCF working with Silverlight. I'm a total beginner to WCF but have written asmx services in the past. For some reason when I uncomment more than one method in my service Silverlight refuses to let me use it, saying it is invalid. My code is below if anyone could help. I'm using the Entity Framework if that makes a diffe...

Silverlight Application for the web - storing data on site

Hi all, I've made a little game as an application for the web in silverlight using C#, and I simply would like to save the top ten scores of any of the users that go on it. How can I write to a file and save it on my web hosting area? Is this possible? I think this would be the best way, because I only need to store a name and score (...

Turn Off Silverlight Plug-in Warning in Chrome

I'm working with a Silverlight 3 app and using Chrome as my test browser. While debugging I keep getting the popup message: Plug-in Unresponsive The following plug-in is unresponsive: Unknown Would you like to stop i? Yes/No How can I turn this off in Chrome? Can VS be set to shut it off only when debugging? It's a rea...

Silverlight 3: Using list of UserControls as ItemsSource for TreeView

I want to populate a TreeView with UserControls, but I only want the Name property to show up, not the entire UserControl. The following code gives me weird crashes as soon as I add something to myUCs: C#: var myUCs = new ObservableCollection<UserControl>(); MyTreeView.ItemsSource = myUCs; XAML: <controls:TreeView x:Name="MyTreeView...

How to customize tooltip for silverlight control?

SL provide ToolTipService.ToolTip for simple tooltip. I want to customize tooltip with my own user control. One way is to do something like: <TextBlock Text="Hello" > <ToolTipService.ToolTip> <TextBlock Text="I can help you." /> <!--replace this with user control --> </ToolTipService.ToolTip> </TextBlock> But what I want is...

PropertyValueEditor and DependencyObject in Blend 3 - Silverlight DesignTime support

I'm working on a set of controls that has a number of DependencyProperties. The properties are themselves DependencyObjects and created during the get method of the properties. During the Get method, they are also set back to the propertybag using the SetValue() method, so they are in fact valid in Xaml and their properties can be storyb...

Silverlight GridSplitter: simulate "snap to grid"

I am working with Silverlight 3. I have a grid with 2 columns and with a GridSplitter between them. How do I make the GridSplitter snap to 5px increment when dragged? Thank you. ...

PagedCollectionView when wrapping an ObservableCollection in a DataGrid clears Column headers when no data is present

I am using the PagedCollectionView for grouping. I have a DataGrid and a textbox with a search button. The ItemSource of the grid is my PagedCollectionView, and the PagedCollectionView wraps an ObservableCollection because items in the grid can have their bound objects updated by a background process. When you click search, I first clea...

How can I close an out-of-browser Silverlight window?

I want to be able to close a Silverlight window when running out of browser. I know it is possible to do this in the browser. ...

Silverlight 3 Custom Control Event-handling Navigation

I have a Silverlight 3 aplication, The solution (of 3 projects) looks Like this: ChartsCustomControl    PieChart.cs SLGrid.Web SLGrid    NavigationPage.xaml    Views       PieChartPage.xaml          PieChartPage.xaml.cs I'm using the navigation Frame control, and have a folder named Views for the different pages. PieChartPage.xaml.cs ...

Templates in extended Silverlight controls

Hi all, i am looking to extend a third party control, it is a ComboBox (so it isn't the standard Silverlight one, but that shouldn't matter for this question). To do this, i add a new template control to my controls project, then i change the new control to inherit from ComboBox instead of Control. A style has been created for me in the ...

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage, but the image still didn't display. So I finally realized that I could capture loa...

How to share entities between domain services in WCF RIA Services framework?

If I would build a big WCF RIA Services application with multiple domain services how could I have certain entities, which are shared between those domain services and exposed by them in different context. For example I could have a Cutomer entity, which is exposed both by Orders and Loyalty modules/domain services. At least my own exper...

How do I bind a Silverlight ItemsControl inside of a databound ListBox.ItemTemplate?

I'm writing a Silverlight application. I want a Listbox that displays the rows vertically. Then for each row there should be a header column on the row and then a horizontal list of panels. I have the layout figured out. My problem is with the data binding. The ListBox is being bound to a collection. Each item in that collection will be...

How do I loop through a set of items in a databound Silverlight control such as the ListBox?

I have a silverlight ListBox that has it's ItemsSource set. From the C# code behind I want to loop through each ListBox item and change the value of the text and access controls that are in the ListBox ItemTemplate. How would I do that? ...