silverlight-4.0

The name 'xxx'does not exist in the current context

Hi , I created a Sliverlight 4 Business Application ( BussinessApplication1.csproj & BussinessApplication1.Web.csproj ). In BussinessApplication1.csproj I have 2 silverlight pages , EmployeeListing.xaml ( in a folder named Views ) and a CustomerRegistrationWindow.xaml in the root . From the code behind file of CustomerRegistrationWindo...

Changing the size of a region in Prism

This is perhaps a silly question, but I can't seem to find out how to do this. I have a Silverlight app using Prism's regions, and I have a requirement for an 'expand'-type button inside one of my views. When the user clicks that button, I need the view to grow larger. How do I change the size of my region dynamically, like this? I...

How to pragmatically create BubbleSeries in SL4

I am creating a BubbleSeries in a function within CS file. As a data source I use a List<Dictionary<string,string>> GridData, Unfortunately my implementation throws an exception: No suitable axis is available for plotting the dependent value. I am SL4 newbie and I can not figure out what could be a reson. Here is how I create and add Bu...

How can I implement my existing Business Layer to a SilverLight 4.0 Application?

Hi, Lets assume that I have my own business layer containing my business objects and my business services. And I have decided to create a "SilverLight Business Application" (with SL v 4.0) and I want to use my already used Business Layer from the SL application I plan to develop. I know that I cannot include a project which is not a SL...

How to DataBind from the Header property of a Silverlight DataGrid

How can the "Header" property of the DataGridTemplateColumn (or DataGridTextColumn) be bound to some text property of the ViewModel in the DataGrid of Silverlight 4? "Ideal" solution (that does not work): <sdk:DataGrid AutoGenerateColumns="False" ...> <sdk:DataGrid.Columns> <sdk:DataGridTemplateColumn Header="{Binding MyViewModel...

How can I use UDP Multicast in Silverlight4?

How can I use UDP Multicast? Who can help me? I have some sample, but it does not work. Who can explain me how to work with this technology? ...

Child item in TreeView not updating

I copied the basic method of having checkbox in a treeview from the official Silverlight toolkit Checkboxes in a TreeView example. When a user clicks on a parent TreeViewItem I want all of the child items to be checked, as in the above example. This works fine when the parent is collapsed, clicking the checkbox puts a tick in the paren...

Silverlight UI Validation, using WCF but not RIA

Anyone have any recommendations on the best way to do this? Data Annotations make sense, but I can't use them with my WCF services (http://stackoverflow.com/questions/822328/data-annotations-on-wcf-service-contracts) . I can't use RIA, because I need to send my services over TCP. ...

Useful Silverlight class library with reference to .NET class library.

I'd like to develope simple set of controls to display many sort of data and be useful in normal silverlight application and can be used in ASP.NET MVC2 application. Right now i have no idea how to link those tehnologies, but this isn't my concern right now - i just heard it is possible and i'll find out how to do that... Right now i'd ...

Why is XamlReader.Load unable to recognize my attached property in Silverlight 4?

I'm trying to figure out how to programmatically apply a theme at runtime in our Silverlight 4 application. I figured this should be as simple as loading a resource dictionary from XAML and merging it with the application's merged dictionaries. Here's my code so far: var themeUri = new Uri( "OurApp;component/Themes/Classic/Theme.x...

Microsoft Certification Advice : Silverlight path

I apologize if this title is misleading. I already know that Microsoft isn't planning on releasing a Silverlight certification due to their quick development cycles (please correct me if I am wrong). I have started a new job that places a lot of emphasis on Microsoft Certifications, as of late I have been doing Microsoft Silverlight deve...

How do I make Message targets be the only recipent of a targeted Message?

Hello Stack Overflow! First time poster. I'm using MVVM-Light with Silverlight 4 and RIA Services. This has been a learning experience! But so far, it's working beautifully. I was wondering two things. Right now, I'm using the Messenger framework to pass EntityObjects back to the ViewModel. For instance, I need to open a View Model wit...

How to bind data to a ListBox in a ControlTemplate?

Hello Stackoverflow users, What I am trying to do is to create some sort of "rooms"(like a chat group, a sharing center or whatever you want). All the room are created the same way, but each one of them contains different informations. Each of these rooms is contained in a TabItem. I managed to create dynamically all the Tabitems, to gi...

Silverlight 4: "Invalid XAML" using Converter in DataTemplate

Hi, maybe you could help me understand why I get an unhandled exception "Invalid XAML" in Visual Studio 2010 designer when trying to do the following on a Page. I have a Converter named DateTimeConverter that converts a date into a German date string. The converter works fine. I've included the namespace and added the following to the ...

SL 4: simple file upload, why is this not working?

Hey guys, I am not getting any exception in the following code, however I also don't see the file which is suppose to be uploaded to the server (in this case a localhost) - could someone please point out the mistake? As an add on, I need a simple silverlight file uploader with a progress bar, but I am having a really hard time try usin...

XAML/Silverlight: Passing a collection (e.g. ListBox.SelectedItems) to a DomainService method

I need to pass a set of values to a DomainService method. Here's what I'd like the service method to look like: IQueryable<Person> GetPeople( Nullable<DateTime> MinDOB, IList<String> Ethnicities ) { return from Person item in ObjectContext.People where item.DOB >= MinDOB && Ethnic...

Chart control not showing series

I have this DTO: public class ServerDTO { [Key] [Editable(false)] public string Id { get; set; } public string Name { get; set; } public string OS { get; set; } public string ProcInfo { get; set; } [Include] [Association("Server_RamInfos", "Id", "HostId")] public...

How can I determine when my StackPanel lost focus, from inside the UserControl that contains it?

Hello, I have a Silverlight UserControl, and it contains a StackPanel which, in turn, contains some UserControls in it. I would like to be able to determine when the user clicks/tabs outside of the outermost StackPanel (i.e. when the StackPanel loses focus), and I would like to be able to handle it from inside my UserControl. Does any...

Runtime theme switching with explicit styles in Silverlight 4

It's been requested that we add dynamic theme switching to our application, and I'm having problems figuring out how to do this. Here's the current situation: our application has a merged resource dictionary with explicit (not implicit) styles. The views in our application refer to these styles through the StaticResource markup exten...

DevForce Error when Run Custom Tool

When I right click on the T4 file and Run Custom Tool, I get the errors Compiling transformation: Metadata file 'IdeaBlade.VisualStudio.DTE.dll' could not be found Compiling transformation: Metadata file 'IdeaBlade.VisualStudio.OM.CodeGenerator.dll' could not be found Compiling transformation: Metadata file 'IdeaBlade.EntityModel.Edm.Me...