silverlight-3.0

Domain Service vs WCF Service?

Hi all, Im slowly delving into Silverlight and after a good while trying I am finally able to return my own Custom Object from my web to my silverlight client, use a Siverlight enabled WCF service. Now, im a little at a loss between the differences of a Domain Service, and a WCF Service. Ive worked through the tutorials where a Domain...

Out of browser Silverlight app - how to setup automatic updates?

I'm wondering how to setup my Silverlight project to enable automatic updates for out-of-browser application. I added some code in app.xaml.cs (see below), rebuild app, installed as out-of-browser, changed versionionfo in asseblyinfo.cs, rebuilded, run again but unfortunatelly no update happened. Am I still missing something? publ...

how to preserve the selected item of ListBox after data change?

i have a (Silverlight 3) ListBox binded to a constantly refreshing data, how do i preserve the selected item after each data refresh? ...

How do I resize a Silverlight 3 application and all child controls and keep aspect ratio

Hi I'm building a Silverlight 3 application and I would like it to resize depending on the size of the web browser. I have found http://community.irritatedvowel.com/blogs/pete%5Fbrowns%5Fblog/archive/2008/07/04/How-to-Resize-a-Silverlight-2-App-and-Keep-the-Same-Aspect-Ratio.aspx But the solution suggested doesn't seem to work on s...

Invalid cross-thread access issue

I have two ViewModel classes : PersonViewModel and PersonSearchListViewModel. One of the fields PersonViewModel implements is a profile image that is downloaded via WCF(cached locally in isolated storage). The PersonSearchListViewModel is a container class that holds a list of Persons. Since loading images is relatively heavy, PersonSear...

TCP/IP over SSL and silverlight

I want to write a silverlight page which connects to a tcp/ip server. The server is layering ssl as well. The problem is I don't see a SSLStream in Silverlight. Is this doable (I need the tcp/ip because this page will constantly get events from the server and no I don't want to poll, in fact I can't the server is third party) Thanks ...

How do I get rid of the Play buttons in a Silverlight/Expression Media Player?

I'm using an ExpressionMediaPlayer to play live streams. Obviously for this I don't need a play/pause button. Is there already a predefined way to select which controls to show, or is the correct way to edit the control template and just remove them? Trying to keep everything as out of the box as possible... ...

SL3 dataform validation indicators don't show in tab pages

I have a Prism/SL3 application with a tab control and each page of the tab control is a "Region" that has its own view and viewModel. when I want to validate the main page, I call dataForm.ValidateItem(), then I go to all the child views and do the same. the problem is, only the pages which user has clicked on them (on the tab page), get...

How to reference the UserControl in Dataform (silverlight) ?

I have a Dataform with EditTemplate, in the EditTemplate, these are a few tabs using TabControl. One the tap has my custom user control with x:Name="ctlAttachment". How can I reference my control in the code behind? I tried .FindNameInContent, but now work. Please advice, Thanks! ...

How to insert a new row in DB using RIA in code behind without DataForm?

I have all data in the code behind, and defined in xaml: <dds:DomainDataSource x:Name="ddsContAttachment" QueryName="GetMContAttachment" AutoLoad="True" LoadSize="20"> <dds:DomainDataSource.DomainContext> <employee:ContractSrv /> </dds:DomainDataSource.DomainContext> <dds:DomainDataSource.SortDesc...

Invoking webmethod from Silverlight

Requirement: the webservice is located on a remote machine. webservices are part of the appserver package which can be reinstalled on different machines Is it possible to have the webmethod URL in the web.config file and invoke the webmethod from silverlight? the request and response objects of webmethod will be same across releases t...

Best way to modify Button behavior and Content, but maintain styles?

I'm trying to create a control in Silverlight that inherits from Button so that I can perform a specific action everytime it is clicked. I'm doing this because I'd like to reuse this custom button in several locations with the same functionality. I'd like to create the control in such a way so that I have a can set the custom Button's ...

Silverlight validation of dependent controls?

Hi All, I have Silverlight 3 application with two datepickers for Start Date and End Date. They are data bound to a business object which implements validation logic such that the StartDate must be before the EndDate and the EndDate must be after the StartDate. So far, so good - both controls display the appropriate validation error wh...

ASP.NET and Silverlight applications

I am new to Silverlight, so this question might seem pretty stupid. My question is, can an ASP.NET web application that's hosting a Silverlight application receive events generated by the Silverlight application? If not, how does an ASP.NET application communicate with a silverlight application? ...

Silverlight 3 Toolkit Installation Issues

After reading a few of the forum comments on the site, I decided to try to learn Silverlight 3 for the first time (No particular reason, I just like to torture myself learning new API's). So I went to link text And clicked the Big Green button called "Get the Microsoft Web Platform". Big Mistake...At least in terms of what I expected ...

Host silverlight 3.0 in wpf application

How do I go about hosting a silverlight 3.0 application inside of a wpf application in which I can pass data between the two? It needs to run without internet connectivity. ...

Silverlight detecting devices

Hello, I would like to know if silverlight can access devices such as GPS or a form of location base device that can tell the application the returned location. Thanks. ...

Reflection and late binding in Silverlight

I want to be able to load items in System.Windows.Controls using late binding. I can do it with dlls that i can load remotely like this: private void Button_Click(object sender, RoutedEventArgs e) { panel1.Children.Clear(); WebClient c = new WebClient(); c.OpenReadCompleted += new OpenReadCompletedEven...

Silverlight BitmapImage

Hi When i am setting the source using the SetSource method in BitmapImage i got the Out of memeory exception in Silverlight .How to solve the problem System.Exception was unhandled by user code Message="Error HRESULT E_FAIL has been returned from a call to a COM component." StackTrace: at MS.Internal.XcpImports.CheckHResult(...

How to create a custom field when using WCF RIA?

I have a table that have "first name" and "last name", when binding to a datagrid, I need to have column named "name", which is "first name" + SPACE + "last name" As I using domaindatasource tag in xaml, any method to bind a column "first name" + SPACE + "last name"? Is there any method like define a class to have for the table in edm...