silverlight-3.0

Setting same style twice to different instances in code

I am trying to reuse shape data to dynamically create new shapes in code. Basically I want to do this http://stackoverflow.com/questions/839843/reuse-path-object-in-xaml but in code. Here is the situation: Path path = new Path(); path.Style = (System.Windows.Style)this.Resources["PathStyle"]; Path path2 = new Pat...

Discussion: Silverlight 4 expectations

SL 3 is almost here (the official release date is the 10th of July), and most of its new features are already known (mainly UI improvements and wider support in other media formats). I think it's time open a discussion about what are the expecations from SL4. So, what features do you wish will be available in Silverlight 4? My (subjec...

Different data contexts in a SL3 form

I wrote a custom Silverlight 3 control that uses a class as its data context (MVVM pattern). I want to place this control on another control (form) through XAML. The child control exposes a Dependency Property that when set through XAML, will make it show detailed info. So an example is that the child control shows order details data, ...

Different UI for the SelectedItem and the ItemTemplate for Silverlight ComboBox

Hi all, Basically I'm just looking for a 'SelectedItemTemplate' in the SL3 ComboBox. Unfortunately, that doesn't exist. What I want is for the SelectedItem to look like this: Value And the items in the dropdown box to look like this: Value + extra information The latter is easily enough done by using the ItemTemplate, but the Selec...

How to compile the linked Silverlight Page in project

I have two projects, one is SL navigation application and another one is a SL library which contains some SL navigation page. How could make the navigation application could find the navigation page in the other library when running? I have tried to add the page as link item but it also cannot navigate to the page. ...

Set focus on AutoCompleteBox in DataGridTemplateColumn

I have an AutoCompleteBox inside the CellEditingTemplate for a DataGridTemplateColumn and I am trying to auto-focus on it after a certain number of characters have been entered in a previous column. I have been able to get the focus to shift and the caret to set appropriately using the BeginInvoke method (described here) but only if the...

Ria Services - SubmitChanges() problem. Possible to limit to one change at a time?

I would like to submit a collection of entities one at a time. There are 2 reasons for this: - I'm uploading a lot of data and submitting more than one change exceeds the http limit for these transfers. (i don't want to change this limit) - I want to see the progress of each item getting submitted. Example: Suppose I have an album and ...

Populate DataFormComboBoxField from a list

Does anyone know how to populate a DataFormComboBoxField from a regular list in SilverLight 3 beta? There seems to be no meaningful documentation or examples anywhere online. Thanks ~Steve ...

Silverlight Application - Embedded advertising possible with HTML or Silverlight?

I have a 100% silverlight application that takes up the entire screen. Plan A: I would like to embed other silverlight ads but I cannot find any companies that provide this service. Plan B: Embed classic HTML ads into the app. I've found one way by playing around the with DIV's and Javascript but it seems like a major hack. do not wan...

Selected Index on a DataFormCombobox

Does anyone know of a simple way to set a selected index or item a SilverLight 3 dataform combobox? All of the online documentation suggests that it can only be done via databinding, which I'm not using in one particular instance. Thanks ~Steve ...

What are the best tools for the beta version of Silverlight 3?

What is the best set of tools to use for developing Silverlight 3 applications while it is in beta? I want to be able to easily transition into the released version when it comes out. ...

Silverlight 3: Expose Validation.GetHasError on custom control

I have written a custom UserControl that is embedded into another UserControl. Something like the simple diagram below. UserControl_A UserControl_B TextBox_1 CheckBox_1 Button_Save In UserControl-B the validation is working reasonably well but I want to check for errors in the logic of UserControl-A ( OnSaveClick event of t...

Silverlight 3 - Creating Custom Objects inside a Merged ResourceDictionary

I have custom classes that I currently instantiate within App.xaml as resources. I want to move these custom objects into a Merged ResourceDictionary, where they are used within styles, and keep them close to where they are used. Here's an example of what I want, arbitrarily using fake converter objects, but they could be any custom obj...

How do I load a specific xaml page based on a user input

Quick Explanation One Silverlight (3.0) project with several XAML pages. I want to load the Silverlight control pointing to different XAML pages depending on certain events. I'm considering doing this with Querystrings. Anyone have any luck with this or best practices? ...

Application.Current changes when using reflection to create an instance of another Application class

Let's say I have the following Silverlight Applications: App1.xap App2.xap App3.xap Let's say that I start App1.xap as the default xap file. If I load App2.xap and App3.xap and instantiate an Application class within one of the other two XAPs. The Application.Current changes to be that new instance. System.Windows.Application obj =...

Frame Region Adapter and RegionContext in Silverlight 3/PRISM

Hi I'm trying to use the new Silverlight 3 deep linking feature to try to drive a PRISM based application "from the outside", i.e, by using the browser url. The url would be used as a hint to know which PRISM module to load. So, I have a region hosted inside a SL3 Frame which is adapted by a custom region adapter I built. All the views...

Has anyone had success with .NET RIA DomainDataService and POCO?

I have this working and getting data. However, everytime I page it calls the GetAllWebExceptions, which gets all of the web exceptions records from the database. How should paging be implemented? I've only seen examples with EntityFrameworks. Does anyone have a good example using the data source with POCO or is that still to come? <Gri...

Problem parsing a XML response from a Last.fm REST service in Silverlight 3 using LINQ to XML

I've got some problems parsing the response of a Last.fm API call from a Silverlight 3 application. I pass the response string of the REST service call, which was made via the WebClient class, to the XDocument.Parse() method to get a XDocument. Parsing the xml string seems to be successful but when I look at the resulting XDocument it ...

Silverlight out of browser icons displaying inconsistently

I'm getting some strange behaviour with the out of browser icons in a Silverlight 3 app. All four sizes are defined in the AppManifest.xml and each icon has the build action set to "Content". However, I'm only seeing the icon display on the very first install prompt (128x128 icon) and not on the desktop, shortcut menu or title bar when t...

How to access ItemsHost from a ItemsControl derived custom control

I'm creating a custom control called FooControl derived from ItemsControl have a default style defined for the same in themes\generic.xaml. The default style for FooControl sets ItemsPanel property to another custom panel called FooPanel as below (I don't think the usage of custom panel matters for this question). <Setter Property="Ite...