silverlight

how to make string value accessible from one area to another in C# Silverlight App

*Update: making the userIP static seemed to work. However, I learned that MainPage() is exectuting before Application_Startup(), so the InitParam values aren't immediately available. I may have to put my code somewhere else.* I'm writing a Silverlight App and am taking in a variable in InitParams and I want that variable to be accessi...

Silverlight 3 - Visual Studio Tools

Hello, I am trying to get started doing some Silverlight development. I am interested in learning about the out-of-browser support. I can create and run Silverlight 3 applications just fine. I have confirmed that I have Silverlight 3 instead of Silverlight 3 Beta. I have been able to confirm this because my API list includes Application...

In Silverlight, what's the difference between UserControl_Loaded and Page_Loaded?

I'm trying to write a silverlight application that takes in InitParams and then uses those InitParams to make a change to the Source of the MediaElement on the page. I'm trying to figure out the proper place to put my code. I watched Tim Heuer's excellent video on InitParams, but in the video (which was for Silverlight 2), it shows the...

Are there any tools for converting C# Class Libraries to Silverlight Library?

I have written a C# class library (DLL) and wondering the quickest way to make this usable in Silverlight? Presumably I will have to convert it? ...

Developing Silverlight in Visual Studio Express?

Can I develop Silverlight applications in Visual Studio express? When I start up Visual C# Express 2008 it doesn't give me any options to create Silverlight applications? ...

SketchFlow - Merge and Report Multiple users feedback

I'm using Microsoft Elements 3 SketchFlow to get user feedback, but how can I merge them together or at least print them? ...

Silverlight defaultStyle problem

I have the following scenario: Create a new class library project called Lib1 1.1. Add a new control called control1, Themes/generic.xaml file and specify the default style of control1. Create a new class library project called lib2. 2.1.Add a new control called control2, Themes/generic.xaml file and specify the default style of contro...

Expand whole TreeView in Silverlight

How can I expand the whole TreeView in Silverlight? EDIT: Here is the XAML : <controls:TreeView x:Name="tv"> <controls:TreeView.ItemTemplate> <common:HierarchicalDataTemplate ItemsSource="{Binding Children}"> <CheckBox IsChecked="{Binding Visible, Mode=TwoWay}" Content="{Binding Name}"/> </common:Hierar...

Prevent form submit with silverlight

I have a Silverlight control that uses HtmlElement.AttachEvent() to execute code on form submit but I can't seem to be able to cancel the event and prevent the browser from actually posting the page. My guess is that HtmlEventArgs.PreventDefault() is what I need but this doesn't seem to work, any ideas? public MainPage() { Initializ...

Simpler Explanation of How to Make Call WCF Service without Adding Service Ref

In Understanding WCF Services in Silverlight 2, the author, David Betz, explains how to call a web service without adding a service reference in the client application. I have a couple of weeks experience with WCF, so the article was over my head. In particular, although the author gave a lot of code snippets, but does not say what go...

System.Web.Mvc could not laod when publishing silverlight to discountasp.net

I made a simple silverlight web application that just has one button filling up the whole page. It publishes fine to discountasp.net, but when I try to access my website, it says it could not load the file or assembly System.Web.Mvc. I don't even see this in my silverlight project references. ...

How to bind a ListBox to Properties in a Class?

I have one main outstanding issue, I know now how to databind to lists and individual items, but there is one more problem I have with this, I need to bind a listbox to some properties that are in a Class. For Example I have two Properties that are bound in some XAML in a class called Display: Public Property ShowEventStart() As Visibil...

How to access application object in Silverlight class library?

Suppose my solution have two project: myApp: silverlight application project: the default application App MyLib: silverlight class library project then in code for those controls in Mylib, how to access the application object App? ...

Why don't OneTime and OneWay databinding work with TextBlock's Text property

In Silverlight 3: I've got an object that implements INotifyPropertyChanged I've got a TextBlock with the Text property bound to a property on my object. However, the property changes and fires the PropertyChanged event, but the TextBlock control never displays the value. If I change the Mode to TwoWay, it works, but this doesn't make...

ASP.NET MVC + Silverlight + Forms Authentication

So i am trying to get a simple system working where i have an asp.net mvc web app with the forms authentication already up and running with a user created. i can login with no problem using the mvc controller/view. I then added a silverlight app to the solution, using the existing web app as the host. I created a silverlight-enabled web...

Silverlight and desktop drag and drop

Is there, in silverlight, the ability to drag and drop files from the desktop into the browser? I seem to remember seeing something about it being a feature in silverlight 3. ...

Where to place clientaccesspolicy.xml in Silverlight project

I have a Silverlight application on the client communicating with the server side through WCF. I keep getting a CommunicationException occasionally - and in particular when passing larger amounts of data to some parameters of the service. I have been told that if I want the Silverlight application to communicate with a server like this I...

A good rich text control for Silverlight

I'm looking for a good rich text control for Silverlight. The one on codeplex seems to be out of date and another free one I saw on vectorlight doesn't seem to save as RTF (it uses custom xml) or doesn't have printing capabilities. I'm thinking about dishing out some bucks for the Telerik, ComponentOne, or DevExpress rich text control, ...

AsyncCallBack CompletedSynchronously

I've noticed the following pattern recently, but I don't entirely grasp the usage of the CompletedSynchronously property: IAsyncResult channelOpenResult = channel.BeginOpen(new AsyncCallback(OnOpenCompleteChannel), channel); if (channelOpenResult.CompletedSynchronously) { CompleteOpenChannel(channelOpenResult); } And then ag...

Silverlight WCF calls work in IE but not in FF

Hi, I'm having a WCF service deployed on one of my servers, and my Silverlight app on the other server. The problem I'm having is running it in Firefox 3.5. Opening in IE 6/7 works great, but when I open it in Firefox it loads the app, but on calling WCF service i get this: An error occurred while trying to make a request to URI 'http:/...