silverlight

Exceptions and Scriptablemember

[ScriptableMember()] public void HighlightEditsForCode(object xml) { //Do Stuff } I have a scriptable member function. I throw an exception from within this function. It doesn't trigger the application.UnhandledException event... something must be handling this event... how can I prevent this and have the unhandledexception event ...

Loading a Child (Navigation Property) Entity not working

I am having a very tough time with this one. I have a Navigation property called Attachment that is part of an entity called ContentChannel. ContentChannel is a many to one relationship with KioskType. In my domain service extension class, I have the following query: public IQueryable<ContentChannel> GetContentChannelFromKioskType( l...

Silverlight application authenticate with WCF without IIS

I've been struggling with this for a few days, and I hope someone can suggest some solutions. I have a self-hosted WCF service, the main interface to this service will be a Silverlight application that is hosted in a non-IIS, potentially shared, environment. I'm aware of the TransportWithMessageCredential and a custom authentication va...

Silverlight 4: OnBeforeUnload

I have a silverlight application and I want to capture the close event of the browser. So what I did, in my .aspx page i have this code function closeIt() { return "Any string value here forces a dialog box to \n" + "appear before closing the window."; } window.onbeforeunload = closeIt; If this functions trigger...

How do I create simple animations using a WriteableBitmap?

Greetings, everyone. I'm trying to learn some Silverlight basics, and have decided to write a simple Mandelbrot-set drawing application for that reason. In Silverlight, of course. ;) The application is mostly done. I'm using a WriteableBitmap to work on the pixels, and a simple Image placed on an empty form to display this bitmap (usin...

How to send e-mail from Silverlight without ASP.NET server?

My task is simple, send an e-mail from a Silverlight app, but it has to work in most webservers so, Linux, Apache. Cannot use Windows Servers. Is my best bet to create a simple PHP script to do the heavy lifting and make request to that using SL? ...

Web Browser Control with vertical bar and navigation to bottom method!

Hi, i am adding html to silverlight's web browser control .what i want is , web browser control always navigated to the bottom and web browser control to show horizontal and vertical bar. thanks jamal. ...

How can I get element from given point on canvas?

Hi I need to get element from canvas by given point. For example I have Rectangle on Canvas, which CanvasLeft and CanvasTop values are setted to some values. I whant get element from canvas which CanvasLeft and CanvasTop vaules are for example 10 and 40. Is it possible? Thanks. ...

Binding a type of Brush to a Background (or setting the binding in code)

I want to let the user customize the background of of my application and select either a color or an image WITH an opacity binding. I want to do this in XAML if possible. I seem to be very close - the code below works great with either the color OR the image brush (if I comment out the other), but I cannot figure out a way on how to ret...

Silverlight repeat behavior in visual state.

I have visual state = loading. And i need in this visual state show loading circle with always repeated animation. But it repeats only once! How can i set repeat behavior to forever?? <VisualState x:Name="LoadingChildNodes"> <Storyboard RepeatBehavior="Forever" AutoReverse="False"> ...

silverlight speech to text

Hello, Does anybody knows if it's possible to record a voice and transcribe it to text in real time? I want to do that with silverlight or if it's not possible with the standard .Net framework thanks for help ...

How Do I get returned value from ASMX Service ?

I have an ASMX service. I want to receive a response from it. My code is below: public class UserService : System.Web.Services.WebService { [WebMethod] public string GetPassword() { return "123"; } } ...

KeyDown problem with Silverlight & MVVM

First of all, I am new to the Silverlight + MVVM world. So I will try my best to explain the scenario to you guys. I have the following AutoCompleteBox in my Silverlight 4 application which works perfect. <myControls:AutoCompleteBox Name="acbVendorID" MinimumPrefixLength="2" ItemsSource="{Binding VendorCodes, Mode=TwoWay}" ...

Automated file upload from browser

After all what I've read on this topic, I know that there is no way to do automated file upload from browser without some kind of "elevated permissions". But, elevated permissions is something what I have, bacause the application runs on intranet and user currently enables access to ActiveX control that makes it possible to do some docu...

Silverlight window boundaries

say your silverlight area on a webpage is 200px by 200px. you open a child window, is there a way to make it moveable outside the 200x200 silverlight area? or say you drop down a combo box, let the drop down go out side of the 200x200 aea? Thank you ...

Blocking a Thread in .Net

I have a class that has purely static Methods and properties. I am calling an async method on the class "Load" that asks a web service for a chunk of data, which then fires an event that executes the return method, "LoadCompleted". I have no idea how long the call is going to take (the difference between calling the "Load" method, then ...

XAML styles in Silverlight not being recognized

I am attempting to create a Syles.xaml file for my test Silverlight app. Here is what I have in the App.xaml file: <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:navigation="clr-namespace:System.Windows.Controls;assem...

How can I copy the selected contents of all cells in a DataGrid (including DataGridTemplateColumn) with Silverlight 4?

With Silverlight 4, I can select one or more cells (or rows and columns) in a DataGrid, hit Control+C and the contents are copied to the clipboard. Which is really cool. Upon Control+V, it can be pasted into Excel or some other editor. However, the if one of the columns is a DataGridTemplateColumn it's values are blank when pasted. Whi...

visual studio xap update

Why do I have to rebuild my project everytime to see the new silverlight xap file created in my browser a little more background info: this is the structure of my setup solution |-project1(asp.net website) |- Client Bin |- xap file |- Xml file |-project2(silverlight project) |- Shortcut to Xml file (added as ...

Graphics library for .net, mono and silverlight

I have a C# application which renders 2D graphics into bitmaps using System.Drawing.Graphics. I now want to port this application to work on normal .net on windows, mono on linux and in Silverlight/Moonlight. But at least Silverlight is lacking System.Drawing. Since I don't want to maintain several copies of my rendering code I need one...