silverlight-4.0

Is there a Silverlight 4 Equivalent to ASP.NET ObjectDataSource?

Hi All, I'm writing my first Silverlight 4 application and am seeing some differences between RIA Services and the ASP.NET ObjectDataSource. In a Silverlight 4 application, is it possible/advisable to use an ObjectDataSource? We trying to avoid use of a database at this point, since we're prototyping an ASP.NET app in Silverlight. Ho...

Issue using silverlight 4 as development environment

i am running visual studio 2010, and as soon I choose Silverlight 4 as build environment, it prompts me to download developer tools for silverlight 4 (http://go.microsoft.com/fwlink/?LinkId=168436) I have downloaded it multiple times and even restarted machine. Does anyone know what could be the potential issue? ...

does elevated trust in silverlight4 also gives elevation in MAC OS

Silverlight4 provides an option to run at elevated trust http://www.silverlightshow.net/items/Silverlight-4-elevated-permissions.aspx Does anyone know if it also provides certain degree of elevation on MAC OS X? ...

silverlight Listbox inside checkbox get value on button click

i want to get value of listbox datatemplate item checkbox get value(check/uncheck) on button click. ...

Bing maps two-way binding to Center property. Animation problem

Hi folks, There is an example of two-way binding to Center property from Micrsoft guys. You can find it here. Its sample works fine, but they disabled full animation. When I set AnimationLevel="Full" and use the Compass I get trembling picture. I really like aminations effects and don't want to turn it off. Are there any ways to get ...

silverlight 4 with multiple domain service classes

Hi All, In my SL Application I have multiple DomainService Classes which deals with the specific entities. Now I need to call upon a method from DomainService Class 1 in Class 2. How do I do that? e.g Product entity is handled in Class2 whereas the Workflow entities are handled by Class 1. I have created a custom class which has properti...

Placeholder for a control in silverlight

Is there something like a placeholder for a control in silverlight? If I have a dynamically created control in my view-model how can I bind it to some element in Xaml? Is it the right way to achieve that: <ContentControl Content="{Binding MyControl}"></ContentControl> ...

How to reload the DataContext?

I have a Silverlight Business Aplication (RIA Services) and I have a DataGrid attached to a DataSource's DataContext. In a Silverlight child Windows I create a new Entity and submit the changes to the server. The problem is that my DataContext does not know that so the grid does not show the newly added entity. How do I refresh the Dat...

StringFormat in silverlight Xaml and resources

I have format strings in my resource files. I am trying to access these from the Text attribute of TextBlock using FormatString Text="{Binding Path=Project.Name, StringFormat={Binding Path=WkStrings.DisplayProjectName, Source={StaticResource ResourceWrapper}}}" I am getting the following error: Provide value on 'System.Windows.Data....

Trouble with metadata in Entity Framework connection string

I have a Silverlight 4 app using RIA Services in which I moved all of the RIA Services-specific code to a separate module (a WCF RIA Services class library) called "AppServices". Let's call the main app "Silverlight4App". I need to authenticate the users against a different database than the database where the rest of the data is stored....

Silverlight unable to resolve References when switching from Debug to Release

I am using: Silverlight Version 4.0, 100% F# solution. I am having an issue when switching the Target Configuration from debug to release. Everything compiles fine in debug mode, then in release I get the following: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve ...

Silverlight cross-scheme access to jpegs denied

Hello. I've got a Silverlight4 app that I'm running on https, deployed to Azure. Everything's working except for one small glitch. I've got content in the form of jpg thumbnails and associated zip files with a .gld extension. My app is supposed to display the thumbnails, and allow the users to download the associated .gld/zip files. ...

How to achieve Natural(human alpha-numeric ) Sorting, for silverlight datagrids using ViewModel?

In silverlight project that uses datagrid, I am using some column that defines "Label number" which is a Varchar. I want to sort this column as described in natural sort order as described in "http://www.interact-sw.co.uk/iangblog/2007/12/13/natural-sorting" or any possible way. When I look around datagrid I saw SortMemberPath="strin...

The Best Silverlight UI Control Collection

Hello, I'm looking for a good Silverlight control collection to use them in my application. Can you recomend a good one? Not problem if it's not free. Thanks. l. ...

Plane projection problem (the element is more higher than the control)

I have a Grid witch contains a User Control. I want to make a flip effect and i'm applying a projection to the grid. The projection is rotating from Y axis from 0 to 180 degree. The problem is that during the animation the projection is increasing the height of my grid and the user control causing them to go out of the current page. If i...

Assembly reference not getting updated in the silverlight 4.0 application project

Point 1): In one solution called CustomBehaviorsSolution, I have two projects - one is class library and another is silverlight class library project. The silverlight class library project has the class files which are 'linked' to the files of the first project. The solution compiles successfully. Point 2): I have another solution whi...

Is it possible to create a desktop application using Silverlight?

Hi! I have been using WPF for a while, and I keep on realizing again and again that Microsoft invests its efforst in Silverlight, not in WPF (RIA Services, default theme, controls and more). I thought it might be a good idea to migrate to Silverlight (i.e. creating standalone desktop apps with Silverlight 4.0), the question is whether ...

Silverlight Constructor Injection into View Model + Design Mode

Hi all. Im trying to get to grips with writing testable ViewModels in Silverlight 4. Im currently using MVVM light. Im using AutoFac and the IoCContainer is doing its job fine. However to inject into the constructor of ViewModels, which are bound to Views I have this constructor chaining: public UserViewModel() : this(IoCContaine...

Rx: Ignoring updates caused by Subscribers

I'm having problems figuring out how to do this. I have two instances (source & target) that implement INotifyPropertyChanged and I'm tracking the PropertyChanged event for both. What I want to do is run an action any time source.PropertyChanged is raised until target.PropertyChanged is raised. I can do that just fine like this: INotify...

VB Silverlight 4 row count

I am trying to get a row count and display the total records. How do I do this in VB? My attemps at converting the C# examples are futile. ...