silverlight

Silverlight app doesn't run i get a Invalid or malformed application error

Hey everyone I have a Silverlight application and when I click 'run' IE starts up and nothing is shown. I get an error icon in the bottom left that when i click i get the following error Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET...

Silverlight WCF service

Initially created a WCF service with one method and everything works fine. I tried to add a new method to the service and for some reason when I try to update the service it does not find this new method. Any advice? ...

Silverlight in BPOS SharePoint Online and communicating to on-premise service

I want to enable self-service for employees starting with the ability to update simple contact information into AD. The twist is that I want this as a web part in SharePoint Online as my company uses BPOS. Employees would log on, change their details and it gets back to the company's AD. Initial investigations have shown that you cann...

CombinedGeometry/Geometry.Combine() equivalent in Silverlight

Geometry class in WPF contains a Combine() method which is extremely useful when you need to exclude one geometry from the other, etc. Silverlight version of Geometry doesn't have such a method. The same goes for CombinedGeometry class which does the same. Are there any other options to exclude one geometry from another in Silverlight? ...

Silverlight security: giving a permission to access anonymous classes to a class library

I'm porting an existing class library to Silverlight. I used lambda expression compilation a lot and now I'm experiencing security problems because of it. In particular, if an anonymous class from a client SL app is participating in a lambda expression, I cannot compile it: I get a MethodAccessException with the following stack trace: ...

ActivationHost for ElementMenu

I am creating dynamically ScatterView items using template: <s:ScatterView.ItemTemplate > <DataTemplate> <DockPanel LastChildFill="True" > <DockPanel.Background> <ImageBrush ImageSource="{Binding Type, Converter={StaticResource imgSelector}}" Stretch="Fill" /> ...

Telerik Silverlight RadTreeview AutoRefresh

In my application I am using the Telerik Silverlight RadTreeView control. This is populated with hierarchical, load on demand data. My view refreshes every 60 seconds and I want to maintain the expanded nodes, the selected item and the scroll postion. What is the simplest way to acheive this? Any help much appreciated. Thanks, Mark ...

Programatically Accessing a Silverlight Static Resource

I'd like to programatically access static resources much as I would in XAML: <TextBlock Text="{Binding Source={StaticResource My.Text.Key}}" /> This works whether my static resource is defined on the TextBlock, some parent element (e.g. UserControl) or even the application. It seems that either the StaticResource binding expression k...

Silverlight onLoad event not fired inside Google Wave

I am creating a wave gadget base on Silverlight 3. It all works great. Problem is that I want to add some functionality when SL control get loaded. So In "Object" definition of SL, I have added a param for "onLoad" and added a dummy JS function in the gadget to have a simple alert. But I am not seeing that alert when gadget gets loaded....

Has anyone developed an editor / ide using C#/Silverlight/WPF?

We are currently developing a web application in ASP.NET MVC which would really benefit from a IDE of sometype to help allow some elements to be visually customised. Could anyone recommend an approach ? We are thinking of maybe a plugin using Silverlight. Does anyone have any links or examples that might help ? ...

Silverlight UserControl Binding

Hi I have a simple User Control Xaml: <UserControl x:Class="GraemeGorman_Controls.Navigation.NavigationItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Border x:Name="borderLayoutRoot"> <TextBlock x:Name="textBlockCaption" Text="{Bi...

x:Name attribute does not always create member or field variable

Adding an x:Name attribute to a XAML element normally results in a member variable being added to the backing class that can then be accessed using normal code. When the element in question is part of the DataTemplate, the field does not get created. I can sort of understand that the DataTemplate is making this a special case but can an...

Advanced topic of dynamic lazy loading of DLLs in silverlight application

It's a common sense when you are developing a big silverlight application that break it into many small components, to make the original XAP file relatively small and dynamically load the necessary DLLs from the server side on demand. An easy way is to download(From WebClient) the dll in the program in the runtime accroding to the URL s...

Digital Sound Processing in C# (and possibly SilverLight)

Hi, I need to do some basic and non basic DSP programming in C#. At its core, it includes the generation of a sin wave deciding its frequency in Hertz. Then I'd like to Frequency Modulate it and maybe filter it. Can you suggest any library to help me? Ideally this should also work in a SilverLight environment, as my aim is to showcase a...

how can we change zindex of a silverlight control programmatically?

Hello I have some controls added in a stackpanel programmatically. What i want to do is that i want one of the controls in this stackpanel to be placed over another control. Specifically, I want to place button over an image in this stack panel. I couldn't find zindex property in c# codebehind. Although it seems very simple problem but i...

C#: Drag drop controls on surface

Is there a way that one can make a control, such as a textbox, drag-droppable in C#? I want the user to have the ability to click and hold the control with the mouse and drag it around on its surface and drop it anywhere within that surface. Anyone has any idea how to implement this? ...

Silverlight Date Formats

Hello everyone, I'm getting some very strange date formatting issues in my Silverlight application. My local culture is set to UK, yet I am consistently seeing US dates popping up all over the place. I can easily hardcode these to UK format in specific loactions using: <UserControl ... Language="en-GB"...> But as I'm sure you'd all ...

How to close a ChildWindow from an UserControl button loaded inside it?

Hi, this is my ChildWindow xaml code: 1 <Grid x:Name="LayoutRoot"> 2 <Grid x:Name="teste"> 3 <Grid.ColumnDefinitions> 4 <ColumnDefinition Width="*"/> 5 <ColumnDefinition Width="*"/> 6 </Grid.ColumnDefinitions> 7 <Grid.RowDefinitions> 8 <RowDefinition /> 9 <RowDefinition Height="Auto...

Reusing Types between ADO.NET Data Services and WCF service in Silverlight

I have an ADO.NET Data Service and a regular WCF service. I'm using both these services in a Silverlight application. The WCF sercvice has an operation which has a parameter of the same type as an entity returned by the ADO.NET Data Service. The problem is that silverlight generates different types for the WCF service and for the ADO.NE...

Silverlight Datagrid Row Click

I have a datagrid with a column containing a checkbox. I want to change the value of the bound Selected property when the row is clicked: NOTE: I don't want to use the SelectedItemChanged event because this doesn't work properly when there is only one row in the grid. ...