silverlight

Is it possible to show/hide UserControls within a Silverlight XAP file from JavaScript?

I've created a Silverlight project that produces [something].xap file to package a few silverlight UserControls. I would like to manipulate that .xap file through the use of javascript in the browser to show and hide user controls based upon java script events. Is it possible to do this? If so any sample could or links to documentatio...

How to host a Silverlight app in a Sharepoint 2007 Web Part

There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM. I have been trying (unsuccessfully) to integrate Sharepoint 2007 and Silverlight. Many of the sharepoint/s...

How do I create a Popup Dialog box in Silverlight ?

I'd like to create a popup dialog box in silverlight in which i can manipulate controls, enter data, and return a value. I want it to be modal, so that when it is open, the page "Below" is inaccessible. I havent found an easy way to do this yet. Any suggestions? ...

Silverlight - protecting Content inside a network (DRM?)

I would like to set up some WMV Video Streaming, using Windows 2003's Streaming Media Server and Silverlight. Now, unfortunately Silverlight only supports HTTP, which means that people can just download the videos. While that in itself is not a problem, I wonder what options there are to prevent them being playable outside of the networ...

Characteristics of a good UI designer

What are the characteristics of a good UI designer? How much does one have to have graphical design abilities these days as opposed to interaction design abilities. I see this of growing importance with the advent of WPF and Silverlight. I personally consider myself good at interaction design, but would like to strengthen my skills in t...

How do you Handle a TimeoutException when calling WebServices using the SoapClient in Silverlight?

How do you handle a TimeoutException that is generated when calling WebServices using the SoapClient? There doesn't seem to be any event to be handled in order to catch any Exceptions generated when calling web services. Is it possible to catch any Exceptions thrown, especially the TimeoutException?? I also posted this question to the...

How do you access the ScrollViewer element of a ListBox control in Silverlight/C#?

I wish to dynamically change the scroll position of a Silverlight ListBox from C#, and I need to know how to access the ScrollViewer element of a ListBox control from C#? Thanks guys, Jeff ...

How do you make a ASP.NET Control talk to a Silverlight app on the same page in C#

For example: First, say I have a Silverlight app with Windowless=true so that I can place ASP.NET controls on top of it. Then I place an ASP.NET button on the page. How can I have say the text of a control in the Silverlight app change when the user presses the ASP.NET button? How would I send the Silverlight app an update message f...

How do you manage huge and barely maintainable XAML files?

I'm having real difficulties with XAML files in Silverlight since they get very big very fast when using Blend. It just becomes a wall of text after only a handful of controls are added and animated. I'm hoping a better vesion of Blend will come out soon, so that our designers will never even have to see XAML. For now, though, that is n...

Expression Blend 2 Issue with Creating Silverlight 2 Projects?

I have Expression Blend 2, Service Pack 1, and cannot create a Silverlight 2 project. When I attempt to create a Silverlight 2 project, I get the following error: Blend cannot continue because a compatible Silverlight version could not be found. I installed Blend a few weeks ago, and service packed it yesterday. The order I did thi...

Fetching images from two different servers

Hi Everyone, Can anyone please tell me the procedure to bring two images from different servers in Silverlight 2? ...

Multiple screens/monitors with Silverlight

I'd like to write a Silverlight app that has 2 or more browser windows that "interact". An example would be a parent/details display where selecting an item in the "Parent" list (in one browser window) will display the details of the item in another window. The main point is so that on a multiple-monitor setup the user could have t...

How to create a numeric textbox in Silverlight?

As the title says really. I've had a look at inheriting from TextBox, but the only sensible override was "OnKeyDown", but that just gives me a key from the Key enum (with no way to use Char.IsNumeric()). ...

How to calculate the correct height for an auto-expanding textbox in Silverlight?

In my Silverlight app I want a multi-line text box to expand every time the user hits Enter. The difficult part is how to calculate the correct height based on the number of text lines. I have tried the following but the textbox becomes too small: box.Height = box.FontSize*lineCount + box.Padding.Top + box.Padding.Bottom + box.BorderT...

How to use a custom item template containing Path tag in ComboBox (without causing out of range exception)

I have a combo box with the following DataTemplate: <DataTemplate x:Key="ComboBoxDataTemplate"> <StackPanel> <TextBlock Text="{Binding Path='Name'}"/> <Path Data="{Binding Path='PathGeometry'}" Width="64" Height="64" Stroke="Black" Stretch="Fill" StrokeThickness="1"/> </StackPanel>...

VS2008 SP1 silverlight design surface will not allow me to drop components onto it

I have VS2008 with .NET 3.5 SP1 (vs has SP1 too of course). I have loaded the latest silverlight tools.. and it went through and un-installed any beta stuff.. No errors installing, and everything else in SP1 seems ok. In fact silverlight itself (i.e. when you select the silverlight project). Just when I try to drop a silverlight co...

How to use a different template for selected and drop down states in combo box in Silverlight?

I can't seem to set a ContentTemplate for a ComboBoxItem. There reason I'm trying to do this is I want to have 2 appearances for my data in the combo box. When the combo box is open (menu is down) I want a text box (with the name of the image) and an image control below it. When I select the item I want the combo box to just show a text ...

How Do you load png resource image in Silverlight?

I am trying to add a png image resource in a specific Silverlight project folder. I would like to refer to this image with in my tag? I only seem to get this working when the xaml file containing the image tag is located in the same directory as the png file. For example in the xap file the png file would be located in xap\resource\...

Sharing service interfaces and model in Silverlight, using WCF

Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application): public interface ICustomerService { Customer GetCustomer(string name); } My web service implements this interface, and references a class library where Customer type is defined. Usually,...

Data access technology for Silverlight and WPF standalone app versions.

I am writing an applicaton that will be a standalone WPF application and also a cut down version that will work as Silverlight and so be hosted in browsers. I want the Silverlight application to access data from the cloud. The WPF application needs to work against a local database but then be able to sync with the same cloud storage. So...