silverlight-4.0

Silverlight 4 Setting background color of textbox on focus

I am trying to set the background color of a Textbox to white on focus using a Style. My enabled Textbox has a Linear Gradient background by default: <Setter Property="Background"> <Setter.Value> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop Color="#e8e8e8" Offset="0.0" /...

Is there any way to programitically change a Data/ItemTemplate in Silverlight?

So I have a Listbox, which is using an ItemTemplate to display an image. I want to be able to change the size of the displayed image in the ItemTemplate. Through databinding I can change the Width, but the only way I can see how to do this is to add a Property (Say, ImageSize) to the class I am binding to and then change every item in ...

Jerky Silverlight 4 animations when running app in OOB

I was playing with new Silverlight 4 and to my surprise when I run my sample application in OOB all animations become very jerky when I moved mouse around during animations, but when I run my app in browser animations are smooth even when moving mouse around. I tried my app on two different computers, turned on GPU acceleration in OOB s...

How to create a Word document from a Silverlight 4 application?

I'm looking for some options to programmatically create a Word document from within a Silverlight 4 application. I found two approaches which seemed promising at first but don't look like they will work. OpenXML SDK The OpenXML SDK isn't available for Silverlight at this time. Word Automation via COM Interop dynamic wordApplication =...

Silvlerlight 4 development using VS 2008.

My current software is based on Silverlight 3 and i am using VS 2008 and Blend 3 for development. With SL4 out in the wild, can i use my existing tool set (VS 2008 atleast) to develop SL4 code? ...

Does IsolatedStorageFileStream.Lock work under SIlverlight4?

Silverlight uses an IsolatedStorageFileStream to open files. The IsolatedStorageFileStreamunder NET.4 claims to support the Lock Method (Inherited from FileStream) The following code IsolatedStorageFile isf; IsolatedStorageFileStream lockStream = new IsolatedStorageFileStream( "my.lck", FileMode.OpenOrCreate, isf ); lockStream.Lock(...

Looking for comprehensive list of SL4 features supported in Windows Phone 7

Can anyone point me to documentation on the SL4 features included in WP7? ...

Multiple Silverlight Unit Test Projects in Solution

I am building out a number of Silverlight 4.0 libraries that are part of the same solution. I like to break them into separate projects and have a Unit Test project for each: SolutionX -LibraryProject1 ---Class1.cs ---Class2.cs -LibraryProject1.Test ---Tests1.cs ---Tests2.cs -LibraryProject2 ---Class1.cs ---Class2.cs ---CLass3.cs -Libr...

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

I installed Windows 7. I then installed Web Developer 2010 Express from here with the Web Platform Installer. I then installed the the April 15 release of Silverlight 4 Toolkit from here. I then added this reference: Then in my XAML, I reference it like this but it gives me no intellisense and tells me that I am missing an assembly...

Why does Silverlight 4 Tools only give partial intellisense?

I finally got Silverlight 4 Toolkit installed , referenced and working after the difficulty of finding the right namespace described in this question. But intellisense doesn't work fully: after I type "tk:", it doesn't pop up the various controls I have available, but if I type a control name out, e.g. DockPanel, then it works, as shown...

Sharing WPF RichTextBox content with Silverlight RichTextBox

Has anyone figured out the best way to persist a WPF and Silverlight RichTextBox content so that it can be shared between the two? I haven't had the time to test through this so I wanted to see if anyone else has. I currently have a WPF applicaiton that saves the content of a RichTextBox as a blob in the database using the following co...

Best way to convert wpf triggers to silverlight?

I have developed several custom controls in a wpf application that use triggers. what is the fastest way to convert the code so that I have a single code base that works both in the wpf application and the silverlight applicaiton. Here is a sample of the code: <Style x:Key="sButtonAction" TargetType="Button"> <!--<Setter Property="...

silverlight 4 with java service.

hi , i intent to replace wcf service with some java service . how should i design my wcf service such that it's gets replaced or can be replaced with the java service later such that i dont have to do any work or very little work on the client i.e on my silver light application . any idea's / suggestions? P.S 1. that is the reason i ...

Do I need a view controller for MVVM-light in Silverlight?

I have the following question regarding MVVM light: what "drives" the UI? I see I can have a ViewModel per View I am showing; the ViewLocator handles all the ViewModels (for caching as I understand). But what is driving the UI? If I have a Command defined in my ViewModel that says "ShowDetail"; do I have to write the code for displaying...

How to make DataGrid in Silverlight 4 show no selection?

I have a DataGrid that I want to simply display data in. I don't want anything to be selected. However, it always wants to select the first column of the first row. Here is the XAML: <myDataGrid:DataGrid x:Name="grdPerson" AutoGenerateColumns="False" Height="478" Width="302" IsReadOnly="True" RowBackgroun...

How do I get a toolbar for the Silverlight 4 RichTextBox?

I put the RichTextBox in my Silverlight App. Do I have to create my own set of buttons to use it? I want to have a standard set of editing buttons for the text box. ...

Is there a way to set LineHeight in a Silverlight 4 RichTextBox?

The TextBlock control has LineHeight. Does anyone know a good way to set LineHeight in the RichTextBox Control in Silverlight 4? ...

Adding Silverlight pages to existing ASP.net page??

Hi I know how to add SL page as a whole to existing ASP.net application. We have existing ASP.net page with few tabs. Each tab is a user control. We want to add another tab, which will host Silverlight content. Is it possible to add silverlight content in one of the tabs of a page? Any example links? Another way of putting up the sam...

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...