silverlight

Animation in Silverlight using a dynamic value

I want to translate an object on its Y-axis over time in Silverlight, but its height is not constant, so I'd like to be able to change the second line of the following from: <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Childr...

Silverlight ListBoxDragDropTarget Errors in Dynamically Added Lists

I am using the Silverlight Toolkit ListBoxDragDropTarget and running into errors using it with dynamically added lists. I am dynamically adding user controls containing lists to a layout Grid. When I drag an item from one list to another in the Grid, I get the following Exception. throw new Error("Unhandled Error in Silverlight 2 ...

Can not use keyboard input to a textbox control in Silverlight 3 when the application is in full screen mode

It appears when I move the application into full-screen mode - I cannot enter text into a text box control. It seems that the keyboard events are being ignored. I have found an article here (http://forums.silverlight.net/forums/t/142460.aspx) documenting the same problem. I also have read that in Silverlight 4 if an application is trust...

Has silverlight replaced or killed off XBAPS

Has silverlight replaced or killed off XBAPS? ...

Trouble with tabIndex in Silverlight

Hi, here's more or less what I have in my XAML: <Grid x:Name="LayoutRoot"> <common:HierarchicalDataTemplate ItemsSource="{Binding RangeValuesDefinition}" ItemContainerStyle="{StaticResource CustomTreeItem}"> <common:HierarchicalDataTemplate.ItemTemplate> <common:HierarchicalDataTemplate> <Border BorderBrush="#FF464646" Bord...

Silverlight xap file hosting issue

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C# + Silverlight 3.0. I am developing a Silverlight xap application. And I want to allow 3rd party web sites to reference my xap file, for example, 3rd party web site could use an iframe to reference my xap application directly from my IIS 7.0 web server, and using such iframe to embed m...

add one xaml based usercontrol to another on mouse event

I have three xaml files + their code behind files in my Silverlight (C#) web project. One is the MainPage.xaml, which is what gets rendered in the browser. The other two (lets call them Dot and Box) are custom usercontrols. When the webpage loads, Dots get added to random locations in a sub-canvas in MainPage xml. I would like to add...

Binding Data to a TextBlock using Domain Data Source

I have a map with hotspots for each state (done in Expression Blend). I capture each MouseEnter of the state (1 thru 50). I pass that into my Domain Data Source: Dim activebox As Path = TryCast(sender, Path) activebox.Fill = mouseOverColor Dim StateID As Integer = CInt(Right(activebox.Name, 2)) Dim _StateContext As N...

dynamic width for DataGridColumnTemplate

I'll keep it short, is there any way to define a set of DataGridTemplateColum's and not have their width be static (such as my values 300, 130 and 900 below)? "*", and "Auto" throw exceptions. I want to have the datagrid be scalable. That is, when the user resizes their browser (it's a Silverlight App), there is not an ugly edge to the ...

RIA: "Use local IIS Web server"

I know I've had this problem when I started working with Silverlight, but I can't for the life of me remember how to fix it. I created a new RIA service application using the standard tutorial, added a table from the database and added a grid to display the results. Works great. Now I pull open the Web properties and change the web proj...

Question about using Silverlight for both web and desktop application

I'd like to start making a small project (nothing too fancy) for the desktop and web using Silverlight. Here are my questions: Will I need Silverlight 4.0 or does 3.0 have out-of-browser features? Are there significant changes between the two versions, with regard to this? What other options do I have besides Silverlight? I'm also cons...

What’s the difference between a ViewModel and Controller in ASP MVC

What are the responsibilities of one vs the other? What kind of logic should go in one vs the other? Which one hits services and databases? How do I decide if my code should go in the viewmodel or the controller? for the record, I am using asp mvc ...

Set defaults for IsolatedStorageSettings.ApplicationSettings

Silverlight has IsolatedStorageSettings.ApplicationSettings. I'm basically looking for an equivalent to AppSettings in ASP.NET where I can set defaults. How do I set defaults in an XAML file for ApplicationSettings? The documentation doesnt explain how to. ...

How to get message from server after upload the file in silverlight 3?

I follow the example in to upload file to server successfully http://www.c-sharpcorner.com/UploadFile/nipuntomar/FileUploadsilverlight03182009030537AM/FileUploadsilverlight.aspx is it possible to get a string message from server on the webclient OpenWriteCompleted event? ...

Fingerprint Reader

Is there a way to access a fingerprint reader from a silverlight and/or ASP.NET application? I have a web application that I'd like to implement fingerprint scanning in. Is this possible in Silverlight or ASP.NET? ...

How to set focus on TextBox in Silverlight 4 out-of-browser popup

I have a simple ChildWindow popup in Silverlight 4 (beta). Important: This is an out-of-browser application. i want to auto set focus on a TextBox control when the window opens. I've tried a couple things : The following code doesn't seem to do anything. I don't think the control is ready to be focussed after 'Loading'. private ...

TCP Ping in Silverlight

Is it possible to run a TCP Ping in Silverlight? I know raw sockets are not allowed, which is a big limit. But can you achieve something similar to speedtest.net which does a ping utilizing Flash? ...

WCF Call from Silverlight hanging

Not sure if I'm doing something wrong ... but I'm trying to implement a WCF service that can be called from WCF. I implemented the async pattern on the client, and here's what the call looks like: BasicHttpBinding basicHttpBinding = new BasicHttpBinding(); EndpointAddress endpointAddress = new EndpointAddress(AccountServiceURL); var pe...

excel workbook isolated storage

can we create an excel workbook at isolated storage area using data from server side..in silverlight.? ...

How to Centre Silverlight Elements relative to each other?

I have an Ellipse and a TextBlock that I want to be Centred relative to each other - ie the TextBlock shows in the Centre of the Ellipse no matter the content eg. its says 88 (like a Bingo Ball) and the Ellipse is the Ball itself - and the number shows in the centre of this ball. How to I accomplish this in Silverlight, where the sizes ...