silverlight

Invalid attribute value for property TargetType in Silverlight Custom Control

Any idea why I get this error with the following code? I'm trying to create a default template for a custom control in Silverlight 3. IInvalid attribute value custom:CaptionControl for property TargetType. [Line: 5 Position: 23] <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://...

Select datetime prints wrong date

When I select some data rows from mssql2005 database and bind them to datagrid, dates selected from db are invalid. For example in db I have date in form: 2009-05-10 00:00:00.000 but when it is displayed in data grid it looks like this: 5/9/2009 10:00:00 PM So it shows 2 hours earlier then saved in db. 05 - it is month :-) What a...

Wrapping images in ListBox using WrapPanel and ScrollViewer, Selected Items disappear!!

I'm using a ListBox to display a horizontal display of 800 thumbnails, but only 6 at a time (depending on screen resolution), I want to move through the images using buttons either side of the list. I currently have this working, but when I change the SelectedItem of the listbox to next/previous thumbnail the ScrollViewer doesn't autom...

Silverlight developer wants to gain some designer chops - where do I start?

I'd like to reskin a Silverlight app to be more visually compelling. Unfortunately, I went to school for computer science, not design, and I have trouble deciding if two colors even match. How do I get started? Let me add that time and money are both factors so pursuing a design degree isn't an option (though it might be ideal). EDIT...

WPF to silverlight: what about files-IO?

We have a working WPF app that we are looking into running in the browser via Silverlight. The big question mark right now is; what kind of file access will we have (without jumping thought to many hoops)? Can we open server-side files? Can we open client-side files? Can we get change notification on files (client or server side)? Can ...

Display the wave form of the playing media file in Silverlight?

While playing a sound file in silverlight, I'd like to display the wave form (or get an amplitude value at least) of the output. Is there a standard way to do this? EDIT: Is this possible in SL3? Or SL4? ...

Adding service references to multiple WCF services that shared classes

I'm attempting to split up my WCF web services into a few services instead of 1 giant service. But the Visual Studio (Silverlight client) duplicates the common classes shared by both services. Here is a simple example to illustrate my problem. In this example there are two services. Both return the type "Person". By default VS will ...

Silverlight asp.net WCF authentication 2.0

Can anyone provide some links to good information on setting up Silverlight 2.0 to authenticate to a WCF Service through ASP.NET Forms Authentication? ...

Silverlight 2: C# INotifyPropertyChanged on dynamically created object?

This is the same Question as one I asked earlier BUT that one was in reference to normal C#. This is Silverlight 2, and I don't have ICustomTypeDescriptor So here is the question again: I have, say a few switch panels (for those that like analogies). Each of these switch panels has switches that have a Name(string) can be in state(bool...

Can I override the context menu in Silverlight for all browsers that support Silverlight 2.0?

It seems like a common question on Google, but I couldn't find a satisfactory answer (unless the answer is 'no') I would like to add menu items or show a custom menu when a user right-clicks on my Silverlight app. The closest thing that I found catches the context menu in IE, but not in Firefox, and Chrome shows the context menu and t...

Increase columns width in Silverlight DataGrid to fill whole DG width

Hello, I have a DataGrid Control which is bound to a SQL Table. The XAML Code is: <data:DataGrid x:Name="dg_sql_data" Grid.Row="1" Visibility="Collapsed" Height="auto" Margin="0,5,5,5" AutoGenerateColumns="false" ...

Running a Silverlight Website

When using silverlight in a browser is there anyway to switch xaml pages? I'm also wondering how to go about using my encryption class I've wrote in c# to validate users in silverlight. Any help would be much appreciate! ...

Silverlight and the speech sdk

Hello. I would like to have Silverlight read text. I've seen this done with the speech SDK, does anyone know if Silverlight supports that? ...

Passing extra parameters to the EventHandler

Hi I am trying to iterate over a list of custom buttons which I have created. It makes a call to a WCF Service to get some info from the DB. foreach (LevelButton l in ls) { WayFinderDBService.WayFinderDBServiceClient client = new SilverlightNav.WayFinderDBService.WayFinderDBServiceClient(); client.GetLevelDescriptionCompleted...

Silverlight: Cannot manage to get ScrollViewer and WrapPanel to work together

Hi, I'm using a WrapPanel to format some text. During runtime I add TextBlocks and StackPanels as Children. Obviously I need a scrollbar depending on the data size. Searching the web I found multiple answers which all propose to put a ScrollViewer around the WrapPanel. That makes sense to me, but I cannot get it to work. Here's my code:...

Allow Silverlight (and Flash) Apps To Remain Full Screen

I'm writing a Silverlight application that can go "full screen" (think YouTube full screen). This is simple enough. However, I want to offer the user the ability to KEEP the app full screen even if they click away. My users have multiple monitors and so it doesn't always make sense to shrink the app back into the browser. At present, if...

Silverlight textbox overrides

I'm trying to get a textbox keydown event to trap the backspace key down event. I have that working by adding a Class that overrides the textbox. What i don't know how to do is have that communicate with the class where the textbox is in the user control. When a user types in the text box... say abcd or backspace, i need to update so...

What framework should I use for a game in Silverlight and on the client?

I made a couple simple games in Silverlight. I'm considering making a much deeper game for Windows. It would have a feature limited version available in Silverlight for use in the browser. What would you recommend I use for the client application (not in a browser or Silverlight)? If any additional information is required, I'll try...

Stopwatch for silverlight?

There is no StopWatch for Silverlight. What would you use instead of it? I saw some posts about people saying to create an empty animation and call GetCurrentTime() from the Storyboard class, I couldn't get it to work... What would you do? ...

Good example sites using Silverlight and DeepZoom?

I am currently looking into using Silverlight and Deepzoom in a future project. Can anyone suggest some sites that make good use of these technologies? ...