silverlight

Silverlight HTTP POST

I am just trying to perform an http post on http://www.test.com/test.asp?test1=3. Here is the code I have been trying to use: private void pif_test_conn() { Uri url = new Uri("http://www.test.com/test.asp?test1=3", UriKind.Absolute); if (httpResult == true) { HttpWebRequest request = (...

Are local admin rights required to install Silverlight?

Can anyone provide an emphatic answer as to whether local admin rights are required to install the Silverlight 3 client? Most of the Google results say “yes” (with some conflicting answers), but I’ve just tested this on several Win XP machines and installation was definitely successful without admin rights. Just to be crystal clear, the...

Can't display base interface in class diagram ("type not found")

I have a class diagram associated to a Silverlight class library project in Visual Studio 2008 SP1. One of the pieces of code displayed in the diagram is an interface I have made that inherits from System.Windows.Input.ICommand. Now I want the base class of that interface (ICommand) to be shown in the diagram as well. So I right-click i...

Expression blend black line error? border?

Hi I'm Trying to figure out why I get a black line down the side of my image in Blend 3. I've imported it from an illustrator file and the image is in a mask layer. <Grid x:Name="LayoutRoot" Background="White"> <Canvas x:Name="home_page_1_LAYERS_rgb" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1024" Height="773.999...

Converting an MVP ASP.NET app to Silverlight 3 - help me choose an architecture

I've been given the ask of converting an MVP ASP.NET app to Silverlight. This will be my first Silverlight application and I'm struggling to determine how best to organise the architecture. The app is very much a standard CRUD LOB app. I will also be using a GIS component but I dont think this makes a difference to the general architect...

Javascript is crashing when trying to access silverlight content

I have a web application containing a silverlight control. When the specific page is accessed that contains the silverlight control a javascript is executed and if this script is executed too early, the script crashes the javascript engine in IE, not even a try/catch can handle the error. Simple javascript silverlightHtmlElement.Conten...

Having trouble displaying thai characters in Silverlight 3

Hi I am writing a small utility too using silverlight 3 and WCF for our localization team to check and correct the translations stored in .NET resource files (*.resx). The tool displays all the text from selected resource file in a grid and allows the user to edit it if required. I have got it working for almost all langauges (Korean, ...

Convert C# Silverlight App To AZURE CLOUD Platform?!?!

The Scenario I've been following Brad Abrams Silverlight tutorial on his blog.... I have tried following Brads "How to deploy your app to the Cloud" tutorial however i'm struggling with it, even though it is in the same context as the first tutorial.... The Question Is the application structure essentially the same as the original "n...

MSTest & Silverlight Unit Test Framework Tutorials

I'm sorry if this appears elsewhere, it may be that my Google-Fu is failing me. I'm in the process of reading Roy Osherove's The Art of Unit Testing and am thrilled to be able to start doing some Test-First work on my current project. Roy's book uses NUnit as the basis for it's training. I find myself in the position of needing to use...

Get object that user control is bound to when within items control?

i have a parent usercontrol, here is an excerpt of xaml <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="Black" > <ItemsControl ItemsSource="{Binding Path=Downloads, Source={StaticResource theViewModel}}"> <ItemsControl.ItemTemplate> <DataTemplate> <Downloader:DownloadControl DataC...

Silverlight adding textblocks dynamically

I know how to add text blocks dynamically using the following code: TextBlock tb = new TextBlock(); tb.Width = 200; tb.Height = 60; tb.Text = "testing"; Canvas.SetLeft(tb, 10); Canvas.SetTop(tb, 10); canvas.Children.Add(tb); What I'd like to know is how to add them dynamically everytime the user clicks a button. So if the user pres...

In Silverlight : call js function when HtmlPage.IsEnabled == true, Javascript disabled in the browser

I am trying to find a definitive answer to what happens when I call a javascript function from within silverlight with the following conditions: HtmlPage.IsEnabled == true user has their javascript disabled in the browser Will the browser just ignore the call? Will it behave the same for all browsers? thanks Michael ...

Observable collection without INotifyProperChanged for one way binding

For Silverlight or WPF when control is bound to Observable collection , and I am only interested in collection additions/deletions to be reflected in a control - i.e. one way binding - am I right in thinking that there is no need for INotifyPropertyChanged in a class the collection is comprised of. But changes to the existing element of ...

Silverlight and RIA Services - Using the ActivityControl with Custom DataContext

I am using Silverlight 3 and .NET RIA Services. I would like to use the ActivityControl from David Poll: http://www.davidpoll.com/?p=4. Is this possible outside of a DomainDataSource (I am not using the DDS)? I would like to programmatically bind to it, i.e. similar to how I bind my other controls via code-behind, via the DataContext....

Silverlight design pattern for performance - very rich client UI

Following on from this initial investigations on Silverlight architectures, I have some new requirements to consider. We expect our Silverlight client UI to be graphically heavy, with a GIS interface, multiple charts, gauges and datagrids arranged in a Widget style fashion. New widgets will be dynamically generated by the user. Suppos...

Expanding a Div in Firefox loading the Xap inside it twice.

I have a div that holds a Silverlight object tag. From the code on some user action (click on a button) I am expanding the Div to total browser window. I am doing it through Jquery addClass and Remove class. In those classes the difference is position absolute , height width 100% and increased z-index. It is running well in Ie7 and IE8....

What is the best tool to allow web users to create flowcharts/diagrams?

I'm creating a web application in which teachers need to be able to easily create educational diagrams, flowcharts, basically: boxes and circles with text in them text labels ability to upload and embed graphics easy to make lines with arrows, etc. lots of ready-made icons and clipart would be nice free and opensource would be nice B...

CollectionViewSource in silverlight

Hi, Based on the sample from http://msdn.microsoft.com/en-us/library/ms771725.aspx which is for WPF. I wanted same sample for silverlight as my requiremnts are same. but i get "AG_E_PARSER_BAD_PROPERTY_VALUE" poiting to in my XAML (FYI: xmlns:dat="clr-namespace:System.Windows.Data;assembly=System.Windows.Data"). Please help me in...

Is it possible for a silverlight app to always use the Out of browser app if it is installed?

i have a silverlight application (SL3) that is enabled for use out of the browser. what i want to know is, if the user installs the application "out of browser" how do i make my site always launch the out of browser application instead of hosting the silverlight application in the browser... is this possible? thanks! ...

How to remove the border line for the header in the expander control in silverlight 3?

Please suggest a right answer ...