*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...
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...
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...
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?
...
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?
...
I'm using Microsoft Elements 3 SketchFlow to get user feedback, but how can I merge them together or at least print them?
...
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...
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...
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...
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...
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.
...
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...
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?
...
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...
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...
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.
...
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...
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, ...
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...
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:/...