silverlight

Trick for seeing databound list controls in the VS XAML Editor

Is there any way to see what a control will look like in the XAML designer when it's ItemSource property is databound? I want to see what it looks like in the designer somehow without actually running the application. ...

Accessibility for Silverlight Combobox Items

In my Silverlight page I have a combobox. In the code-behind I'm filling the combobox items like so: this.ProblemList.Items.Add(Strings.Review_SelectProblem); this.ProblemList.Items.Add(Strings.Review_IncorrectCharacters); this.ProblemList.Items.Add(Strings.Review_MissingText); ... this.ProblemList.SelectedIndex = 0; //Set the default ...

Error: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.Convert'

I'm working on a Silverlight 4 app and I want to test out the new COM Interopability and I am getting this error. I have a reference to Microsoft.CSharp but I still get the error. dynamic excel = ComAutomationFactory.CreateObject("Excel.Application"); Any Ideas? ...

Data Exchange WCF and Silverlight

I am using a WCF service and a Silverlight Client sending data to the service. I am sending data to the service in a For-Loop. However, when the loop runs for the first time the data is being perfectly run, while in the next turn it is returning this error: Microsoft JScript runtime error: Unhandled Error in Silverlight Application An...

Com Interop problem Silverlight 4 and MS Access 2010

I am trying to launch an existing MS Access database (Access 2010) from a Silverlight 4 OOB with elevated authorisation set. I keep getting an error. I can create a new Access application using the CreateObject keyword, but when I try to launch an existing one I get an error: "No object was found registered for specified ProgID." Any he...

Exception when add Silverlight dll in WPF application

Hi, When i added the silverlight dll in the wpf application , i got the following exception. Could not load file or assembly "System.Core, Version=2.0.5.0". The located assembly's manifest definition does not match the assembly reference. This is happening only in VS 2010 professional Beta 2. ...

Silverlight - Get the ItemsControl of a DataTemplate

Hello, I have a Silverlight application that is using a DataGrid. Inside of that DataGrid I have a DataTemplate that is defined like the following: <Grid x:Name="myGrid" Tag="{Binding}" Loaded="myGrid_Loaded"> <ItemsControl ItemsSource="{Binding MyItems}" Tag="{Binding}"> <ItemsControl.ItemTemplate> <DataTemplate> <...

Creating a Business Type Application Using Silverlight 3 - Is it Appropriate?

I'm considering using Silverlight for a business type application which will contain probably a dozen or so screens. The screens will contain data entry forms with edit fields, grids, lookups, calendars, etc. Typical business application type screens. I want this to run in the browser but don't want to mess with HTML, JavaScript, CSS etc...

Silverlight DataPager - Split Into 3X3?

I have a ListBox bound to an observable collection. I also have a data pager bound to the itemsource of the list box. I currently have the data pager set to only show up to 3 rows. How would I go about changing the style ListBox style (or something else) such that I could have a 3X3 display? For example, the first three items in my o...

How to use binding to bind to the grand-parent element in Silverlight?

This feels like it should be such an easy solution, but I think I'm crippled by thinking about the problem in WPF terms. In my view Model I have patterns where a container has a collection of items (e.g. Groups and Users). So I create 3 classes, "Group", "User" and "UserCollection". Within XAML, I'm using an ItemsControl to repeat al...

Attach xaml style to element without explicitly stating it.

I have a problem styling/templating an AccordionItem in the accordion control from the silverlight toolkit. For some reason, the child controls are Horizontally Aligned Left. The only way I can get to fix this is to edit the ExpandableContentControlStyle on the AccordionItem. The style is located below: <Style x:Key="ExpandableContentC...

Silverlight 4 RIA Services DDS to ViewModel-AutoComplete Selected Item Binding

I have an AutoCompleteBox that uses RIA DomainDataSource for the query to the server. I need to bind the AutoComplete.SelectedItem to the ViewModel.SelectedEmployee. They share the same DomainContext and data, but have different queries. When I try the following: ViewModel.SelectedEmployee = autoCompleteBox1.ItemsSource; I get the err...

Error with calling event inside another event

I am using silverlight, My code is set up for a usercontrol as follows: myxaml.xaml (Just showing the toggle button [line 119]) <ToggleButton x:Name="btnToggleResizeMap" Checked="btnToggleResizeMap_Checked" Unchecked="btnToggleResizeMap_Unchecked" IsChecked="True"/> codebehind.cs public partial class MapRadar : UserControl { pu...

silverlight text to speech?

Any silverlight text to speech engine available now? I am looking for very simple text to speech engine which needs to read out numbers. I dont want to rely on any web service.In worstcase I will record some voices for numbers and stitch them together. Any pointers are highly appreciated. My application need not work on MAC or linux. ...

Why Silverlight Out of Browser over WPF Desktop App?

is there any reason why one might want to select Silverlight Out of Browser option over a pure WPF Desktop app? i guess one might be easy to port to a web app? i guess a pure WPF app will provide more performance and features? ...

C# - Convert Implict Type to ObservableCollection

Hello, I have a LINQ statement that returns an implicit type. I need to get this type to be an ObservableCollection in my Silverlight 3 application. The ObservableCollection constructor in Silverlight 3 only provides an empty constructor. Because of this, I cannot directly convert my results to an ObservableCollection. Here is my code: ...

Make an UI element transparent to mouse events

I have a lot of UI elements placed inside a canvas. Some of them are not supposed to handle mouse events while they can overlap with and cover other elements that must handle mouse events. When a mouse event occures, I want it to pass throuh all the elements that are not supposed to handle it to reach an element that might be covered by ...

Silverlight - How do you localize calls to WCF service?

I'm currently trying to find good way to make calls to WCF services in a way that will allow Thread on server to be aware of client culture. After spending couple days reading topics on the web it seems to me that the best way to do this is just to add (string clientCulture) to list of parameters of WCF methods; no longer: string HelloW...

XAML control to inherit from templates

What controls are there to inherit from that has the property of Children and supports templating when building a custom usercontrol. Currently I know about Panel, but it does not support properties and methods like DefaultStyleKey and GetTemplateChild(); Is there an interface that I can inherit from for templates such as: public clas...

Draw curved path between two objects on a <Canvas/> in Silverlight

I am playing around with some stuff in Silverlight, and I am trying to dynamically draw a curved line between two other objects on a <Canvas/>. I tried doing something like this: public partial class MainNodeConnection : UserControl { private MainNode _sourceNode; public MainNode SourceNode { get...