silverlight-4.0

Showing custom tooltip?/Popup when hovering over an object in Silverlight

How can I go about getting similar popup/hover/tooltip (see image below) when I hover or click on an object in my Silverlight app? Update: (added bounty) I am looking for a control which can drop a shadow and show the arrow. I want like 3-4 lines of data which I can pass in as the control's properties. ...

How to pass objects between silverlight and asp.net

I have seen examples where you can pass parameters between aspx and silverlight app as well as how to pass simple values back to aspx. Is it possible to pass generic types such as list collections from a silverlight app to a asp.net page to be picked up. I have looked at serialization but not sure if this is the best approach due to per...

need help with silverlight 4 Lineseries

i need to pull data from a database and display it on a silverlight 4 lineseries graph but so far i have had no luck, does anyone have a document or sample project? ...

Table Summary in WCF RIA service, Silverlight

I am now using WCF-RIA Service to create a domaindatasource in a xaml. It works great to bind the data to the datagrid and datapager. I am looking for how to display in the page that how many row in the whole dataset. As I set the pagesize in 20 ...with say ...3 pages What is the proper way to get there is 53 rows in whole dataset? *PS...

Binding Silverlight ccontrol textbox to a domain context defined as static resource

I defined a domain context as a user resource <UserControl.Resources> <my:ParkDomainContext x:Key="parkDomainContext" /> </UserControl.Resources> I have bounded to table query result to this domain context in my code behind _parkDomainContext = this.Resources["parkDomainContext"] as ParkDomainContext; _parkDomainContext.Load(_p...

How to use Default Silverlight 4 Context Menu AND custom context menu?

This is what I would like: I want to keep the Silverlight default menu options and build up my own global rightclick context menu. I added the menu to my mainpage .xaml and made my custom menu (you can see the live version here) - this works fine (it currently only has "Resize to fullscreen"). This then suppresses the default Silverlig...

Mixing RIA services and standard WCF services

Is it possible to have a mix of RIA WCF services and custom WCF services hosted in the same project? At the moment I have a server project hosting 2 RIA service classes, both of which work fine, and 1 WCF svc file, which loads up fine in the browser (e.g. http://localhost/services/service.svc) but when I access it through code in the Si...

Silverlight DependencyProperty.SetCurrentValue Equivalent

I'm looking for a SL4 equivalent to .NET 4's SetCurrentValue API, which would appear to be exactly what I need for my scenario. In short, I'm writing an attached behavior that updates the value of a given property at appropriate times. However, I don't want it to overwrite any bindings that are set on that dependency property. I merely ...

Add Javascript Dynamically at Runtime Silverlight 4

I am trying to have a method in my code behind at runtime add a function at runtime. I can dynamically add elements to my document with no problem. So I tried the same strategy for adding a script block. Here's what I have tried thus far with no luck. It can create the script block but when I try to add the function. The only thing I ca...

Silverlight 4 Equivalent to .NET Timer Control

Basically I'm wanting to insert a dynamic clock in my project. Right now I'm using the dateTime control which is fine but it's static. I need the clock to change digits with each second. In c# there is a Timer control that I would be able to use to make this dynamic clock possible. However, in Silverlight 4 I have not been able to lo...

How do I Manually Invoke/Raise Mouse Events in Silverlight 4?

In Silverlight 4, I wish to invoke one of the mouse button click events when the right mouse button is clicked. I have the RightMouseButtonDown click event wired up, but I don't know how to manually fire the MouseLeftButtonUp event. I have tried raising the event in the following fashion. private void MainLayoutRootMouseButton(object s...

Silverlight 4 Out of Browser error

Using the Silverlight 4 WCF RIA services works just fine via web page. After installing it as an Out Of Browser application, there is a blank screen then an error comes up saying "Load operation failed for query 'GetUser'. The HTTP request to 'http://reports.mywebsite.com/Reports/ClientBin/Reports-Web-AuthenticationService.svc/binary/Ge...

Silverlight 4 ContentPropertyAttribute voodoo

I'm running into some very anomalous behaviors that I'm having some trouble understanding. Basically, I've redone Colin Eberhardt's MultiBinding technique as a behavior (System.Windows.Interactivity) - mostly because I have a lot of other behaviors and this results in cleaner xaml. Along the way I tried to figure out why the ContentPrope...

Read Excel from Silverlight and Process it in WCF Service in C#

Hello, I want to read the contents of Excel file from local disk using Silverlight and want to pass the data to WCF service. The service will then select the data from the worksheet and put it into database. I want to know which data type shall i use to pass the Excel object to WCF Service? Thanks in advance. ...

When to use the TestProperty-Attribute in the Silverlight Unit Test Framework?

The other Attributes (aka. TestMethod, ExpectedException, etc.) i know where and when to use, but i don´t know what i can do with the TestProperty-Attribute. Why should i use it and when? Whats the reason for this attribute? I found no useful documentation on the Internet, that explains the TestProperty-Attribute. And intellisense doe...

How to output HTML in Silverlight 4 to a string (like HtmlTextWriter)

I have a requirement to generate an HTML snapshot of an object - basically on my app you can click on the Clipboard button and generate either Text, BB Bode or HTML and it goes through the object and builds a string of text which is copied to the Clipboard. You can then paste this snippet on forums, blogs, websites (ie. a way of sharing)...

Mvvm light toolkit and navigate by frame

Hello, Do you have a tutoriel which explain navigate with uri. When my application start i load in my frame "Login.xaml" and his viewModel. When i click on my button "Log" (i use a relaycommand) i want that my frame load "Acceuil.xaml". how make it ? thx ...

How to Make a Control "move-able" on User-End in Silverlight 4

I have a text block on my page. Basically, I'd like to allow the user to be able to click and drag this text block to move it wherever they would like on the page. From what I could tell there are no properties in the text block control that I can tinker with to allow the user to do this. I didn't know if there was a property I was ju...

How to get can CanAddNew to be true for a collection returned by RIA Services

RIA Services is returning a list of Entities that won't allow me to add new items. Here are what I believe to be the pertinent details: I'm using the released versions of Silverlight 4 and RIA Services 1.0 from mid-April of 2010. I have a DomainService with a query method that returns List<ParentObject>. ParentObject includes a pro...

Target Silverlight Version is stuck

I have my shiny new Visual Studio 2010. I want to develop a Silverlight 4 web app with it. I made a project and it told me that I needed to update my Developer version of Silverlight. I followed the link provided and did what it suggested. I then went back and created my project (under a different directory). But when I try to selec...