silverlight-3.0

Very strange bug when using data binding to element under a Telerik RadTreeView

I have the following XAML code as part of a custom control: <telerik:RadTreeView x:Name="treeModules"> <telerik:RadTreeView.ItemTemplate> <core:HierarchicalDataTemplate ItemsSource="{Binding Submodules}"> <local:ModuleInfoUserControl IsReadOnly="{Binding ElementName=ctrlIsReadOnly, Path=IsReadOnly}"/> ...

Is Silverlight ready for commercial website aimed towards non-savy-computer users

My concern is that novice users will turn their back to a website which asks them to install Silverlight. One of the reasons I think they might be scared of installing Silverlight is because they are not aware of what Silverlight actually is. What's your take on this? ...

Silverlight passing JSON object incorrectly?

I have a Silverlight class marked with the ScriptableType & ScriptableMember and I expect to be able to pass the object from Silverlight to javascript. When I call JSON.stringify (in javascript) I expect to receive a JSON representation of the object but all I get is {} The class is defined as: [ScriptableType()] public class MyEvent {...

HtmlPage.Window.Invoke not working for javascript function in separate js file

I'm trying to call a js function from Silverlight using the HtmlPage.Window.Invoke method but it won't call a function contained in a seperate js file. Anyone know why? Cheers AWC ...

How to draw an arc from radius and inner angle in Silverlight

Hi, In a silverlight 3 project I have to draw an arc programatically and I have radius of circle and inner angle of the arc. Could you please direct me to some related articles. Thanks in anticipation! Haris ...

Silverlight Accordion Control with Dynamic Content

I'm using the Silverlight Toolkit's Accordion control. I wanted to create a list of controls that I could load into the accordion and replace on the fly if needed. So here is what I did: Create a class to hold the header and content of each accordian item. public class AccordionViewItem { public AccordionViewItem() { ...

Silverlight 3 with RIA Services - Blank Result Sets/Load Finished

I've been desperately trying for about the last week to figure out whatever my disconnect is that I can't wrap my head around RIA Services. I've meticulously followed the example shown in the Microsoft tutorial video and I'm still having problems. It may be that I'm trying to do something you can't, but in all likelihood I'm just going a...

Charting a line graph enabling variable number of data series.

I have been trying to get the Silverlight charting toolkit to allow me to have a variable number of series based on the data. A single line graph is easy you have two data points in my case NumberOfDays is the X axis and CountOfItems is the value to be graphed. Now I want to be able to say Product 1, Day 1, 10 items Product 2, Day 1,...

Is there any way to handle loader in Silverlight?

When you run a Silverlight application there is a cute standard loader. When loading is finished, application is shown, although some files (such as images) aren't loaded yet and user can't start working with the application. Is there any way to keep loader spinning till all the files are loaded? ...

Why isn't this Silverlight attached property working?

I'm trying to use the MVVM pattern in my Silverlight 3 application and am having problems getting binding to a command property of a view model working. First off, I'm trying to add an attached property called ClickCommand, like this: public static class Command { public static readonly DependencyProperty ClickCommandProperty = ...

VS 2008 does not stop into the breakpoint with WCF RIa services

Hello I have a project with SL3 and WCF Ria services. When I call from SL to a WCF RIA service the code works well but DOES NOT stop in the breakpoint using vs2008. Am I missing something? ...

What are the split characters in Silverlight's TextWrapping?

The TextWrapping feature in Silverlight is described here. However, I'm trying to find out the details of their line-breaking algorithm. Obviously a space will cause the text to break (or split), encouraging the text to wrap to the next line. And through trial and error I've found that these characters also cause a split: \t (tab) -...

Random Silverlight 3 problems

I'm experiencing two intermittent problems with Silverlight 3.0, running on Windows 7 with Visual Studio 2008 Standard edition. My breakpoints will often not be hit, saying that no symbols have been loaded. Often times I can fix this if I stop debugging and try again once or twice. It seems completely random. Infrequently, my project w...

Silverlight 3 DataForm Control how to customize

I am trying to use a silverlight 3 dataform in my project. But I need to bind different controls to different objects in this form. Is it possible to do that. I mean all the data need to fill and edit this form is not coming from one object. Is it achieveable? I also want in my silverlight control to show a combobox when I bind it to a ...

How to detect when bookmark has been changed

Hi there, I have created a Modularized Silverlight Application with PRISM and MVVM, I have written a URLService that changed the url by using the bookmark trick. I now need to be able to detect if the user enters a new bookmark. If a user modifies the bookmark I want to navigate to the relevant page. Example: If I am on page http://Si...

In MouseMove event, how to determine if cursor is w/i certain distance of an edge?

Hello, When the user moves the mouse over an object, I'm trying to do some hit-testing in my MouseMove event handler to detect when the cursor is w/i a certain distance from an edge of the object. I suspect that in the MouseEnter handler I need to store the location of the object, then in MouseMove compare e.GetPosition(this) to th...

How to get JSON from System.Windows.Browser.ScriptObject

I being passed a object from javascript as JSON and it's type in Silverlight is of type System.Windows.Browser.ScriptObject. How do I get the JSON representation from the script object? Cheers AWC ...

How do I make a simple image-based button with visual states in Silverlight 3?

At my previous company, we created our RIAs using Flex with graphical assets created in Flash. In Flash, you could simply lay out your graphics for different states, i.e. rollover, disabled. Now, I'm working on a Silverlight 3 project. I've been given a bunch of images that need to serve as the graphics for buttons that have a rollo...

Silverlight 3: Bind from a combobox in one datagrid cell to one in another cell

I have a Silverlight datagrid where two of the columns are comboboxes. One of the comboboxes is bound to an unchanging Dictionary and is displaying the list of Keys. For the other combobox, I want to populate it with a hardcoded list of strings based on the Value of the selected item in the first combobox. A little more context - the Va...

How to dismiss a popup in Silverlight when clicking outside of the control?

In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of it. In other words, it should function in a manner similar to a combo box, but it's not a combo box (you don't select an item in it). Here's how I'm trying to capt...