silverlight

Way to concat strings when using binding in Silverlight

I wonder if there is a way of concating two strings in Silverlight inside xaml file. I have a DataGrid where one of the columns is 'Default Contact' and I would like to represent data in there as first and last name. <sdk:DataGridTextColumn Header="Default Contact" Binding="{Binding Path=DefaultContact.FirstName}...

Silverlight calling windows workflow foundation as a web service

hi, I'm trying to call a windows workflow foundation published as a web service from a Silverlight project. When I call it from a console application it works fine because I can add a web reference then I just make an instance of that webservice then I invoke the method I want. The problem is in the silverlight project cause i can jus...

Maintaining cell state in the Telerik RadGridView for Silverlight

I have a RadGridView in which one of the columns contains only buttons. Depending on the value of a boolean variable linked to a specific record in the grid, I enable or disable the cell containing the button. This is how I achieve this: foreach (Item item in this.radGridView.Items) { row = this.radGridView.ItemContainerGenerator....

How to make a table in Silverlight ?

So I'd like to make a visible table, with a border around each cell and a different background color for the header. I'd like to eventually insert controls into this. For example, put a textfield inside one of the table elements, or some radio buttons, etc. Is there a control for this? I've narrowed it down to two possibilities, but the...

Adding ComboBoxItem to ComboBox Issue in Silverlight 4

I recently upgraded my Silverlight app from 3 to 4. After a few hours of bashing my head against the wall, trying to resolve an issue, I've narrowed down the problem to this: I have a user control, with a ComboBox inside it. The ComboBox has a single ComboBoxItem child. The user control exposes a get accessors that returns the ComboBox'...

Connecting a DomainContext and loading data manually in Silverlight 4 RC application

I am new to WCF & RIA services and have what seems like a basic problem. I have multiple times in my silverlight 4 RC application dragged and dropped from my datasource window to my form and have returned information from the database. However I have a need to query the database for other information (Building a report) When I try to us...

silverlight 3 listbox item highlight versus selected.

I have a listbox and am attempting to select and item in code. Sometime one item is highlighted, that is it is background is colored blue, but a different item has a square blue box around the it (no highlighting just an hollow outline of a box). Am I correct in saying one is "highlighted" and one is "selected" and do I have them corre...

Why won't Silverlight handle the conversion of my custom float property

In a Silverlight 4 project I have a class that extends Canvas: public class AppendageCanvas : Canvas { public float Friction { get; set; } public float Restitution { get; set; } public float Density { get; set; } } I use this canvas in Blend by dragging it onto another control and setting the custom properties: ...

How to Make Top (or Bottom) Rounded Rectangle Corners in Silverlight?

So the Rectangle control has RadiusX and RadiusY property for making rounded corners. However, this affects ALL corners but I'd like to know if there's a way to just affect the top corners, or the bottom corners, etc. Is there a way? ...

error opening an application in silverlight

When I tried to open the application here. http://amazedsaint.net/nerddinner It gives me an error saying that: This application was created for an expired beta release of Silverlight. Please contact the owner of this application and have them upgrade their application using an official release of Silverlight. So what d...

How can I show folder and its subfolders from server to Silverlight application in TreeView?

How can I show folder and its subfolders from server to Silverlight application in TreeView? ...

MVVM Binding Selected RadOutlookBarItem

Imagine: [RadOutlookBarItem1] [RadOutlookBarItem2] [RadOutlookBar] [CONTENCONTROL] What i want to achieve is: User selects one of the RadOutlookBarItem's. Item's tag is bound like: Tag="{Binding SelectedControl, Mode=TwoWay}" MVVM Property public string SelectedControl { get { return _showControl; } set ...

how to Enumerate local fonts in silverlight 4

Hi! I heard about silverlight 4 can use local fonts. So, is there a way fo enumerate them? I just want to have them shown into a listbox. Thanks you all! ...

How to stop ReSharper from showing error on a lambda expression where Action is expected?

In Silverlight, System.Windows.Threading's Dispatcher.BeginInvoke() takes an Action<T> or a delegate to invoke. .NET allows me to pass just the lambda expression. but ReSharper sees it as an error, saying "Cannot resolve method 'BeginInvoke(lambda expression)'": Dispatcher.BeginInvoke(() => { DoSomething(); }) The error goes away if ...

Silverlight 4, Mouse Wheel Events and Windowless Mode

I have a Silverlight 4 application that benefits greatly from having native mouse wheel support for a number of controls. The page that hosts the application has a HTML driven drop-down menu that would normally overlay the Silverlight control. In IE, I have to enable windowless mode to allow the overlay menu to work correctly (Firefox 3...

Silverlight - preventing ChildWindow movement

Anyone got any neat solutions to prevent a Silverlight ChildWindow being moved? thanks, Mark ...

Google AppEngine with Silverlight client using Google Login

I'd like to use Google AppEngine with Silverlight client. I'm hoping to use the Google login authentication mechanism within the Silverlight client. Is this possible? Does anyone have any example sites where a RIA client used in conjunction with Google AppEngine security? Thanks. ...

Click Event of a button to fire defined inside a listbox item placed at resources.xaml

I have created a style for a listbox item which shows up the button. I can't fire the click event of a button as the style is kept in resources.xaml. How to fire the click event of a button? I am setting the command property of a button : <Button x:Name="image" Grid.Column="9" Margin="4 0 4 0" Style="{StaticResource LedgerDeleteIcon}...

How to get Silverlight's bitmapimage pixel height before it is drawn to canvas?

I have an Image, which I need to scale based on the image's pixel values. When I create the bitmapImage, the pixels (height and width) are both 0. Is there a way to get height and width before the image is drawn to the canvas? ...

When inheriting a control in Silverlight, how to find out if its template has been applied?

When inheriting a control in Silverlight, how do I find out if its template has already been applied? I.e., can I reliably get rid of my cumbersome _hasTemplateBeenApplied field? public class AwesomeControl : Control { private bool _hasTemplateBeenApplied = false; public override void OnApplyTemplate() { base.OnApp...