silverlight

How to retrieve the querystring in a Silverlight class library?

I'm Buiding a Silverlight 3 class library that needs to get a hold of the querystring. Now I know that in a SilverLight app, you can get a hold of it via the HtmlPage class. This doesn't work for a Silverlight class library. In a class library used in ASP.NET you could get hold of the current context through HttpContext.Current. Does Sil...

Possible authentication problem? Loading a JSON via WebClient in Silverlight 4

Hi guys, I'm playing with Silverlight 4, and I when my page loads, I call beginGet("my/people/", new OpenReadCompletedEventHandler(continueLoadStamData)); that I have defined as private void beginGet(string endpoint, OpenReadCompletedEventHandler callback) { WebClient wc = new WebClient(); wc.Credentials = new NetworkCredential...

Loading data from a site in Silverlight

Hi, I'm trying to load data into my Silverlight app. However, when it launches, I get a TargetInvocationException as soon as I hit e.Result: public MainPage() { WebClient wc = new WebClient(); wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted); wc.OpenReadAsync(new Uri("http://www.google.com")); } voi...

what software on a silverlight developer's laptop

i just got a new laptop and probably will be my main keep for the next 3 years. I am looking for suggestions for software needed for a productive silverlight developer. In addition to the basics Visual Studio, Blend and the SDK. ...

Silverlight - Binding an image which is using https

I have an image stored which I can view in a browser using http and https. However, when I bind these url's to my image source I can only see the one which uses http. Any way for silverlight to support https images? ...

Silverlight Button Content Click

Hi all, I have a simple button with some content. With my content though, the button click event doesn't fire if you click on it. You need to click on the small border (which is the button behind the content) to fire the event. What's the solution? Thanks in advance. <Button x:Name="btnAddFriend" Width="64" FontFamily="Fonts/Fonts.zip#...

Silverlight and local sockets

Hi, For the last couple of days I've been trying to figure out how sockets can be used in silverlight. This thread has been helpful in finding resources but Im still trying to find out if it is possible to create 'local' sockets. So could a silverlight application create a socket on the userside for the user to connect to using an iPh...

Linq to XSD for Silverlight

It appears that the LINQ to XSD project has some dependencies on types that are not available in Silverlight, such as System.Xml.Schema.XmlSchemaType. Considering that, I know it would take a significant amount of work to get LINQ to XSD to work in a Silverlight project, but I am curious, has anyone modified the LINQ to XSD project (Micr...

as I update, delete a record in silverlight

as I update, delete a record in silverlight I want to know how to make an update to an entity THROUGH programming code in vb.net with silverlight Thank you very much. Sincerely Leonardo Moreno Flores. ...

Map complex UI to Object cleanly and efficiently.

I currently have an app (in Silverlight), using mv-vm, that has an interface to add/edit/remove various entries to a database. A good analogy would be a page for ordering a car with many checkboxes and comboboxes for whatever features you wanted the car to include. My app has many of these UI elements (even including TreeViews with Tree...

ASP.NET/ActiveX/Silverlight Screen Capture

I need a way to capture the screen within a web application in any way possible. Is there such a way without installing other tools like SnagIt? Can I use Win32 DllImports within an ActiveX component and do it that way? Thanks in advance! ...

Silverlight: Overriding a theme with a custom ItemTemplate

I have a test project I created to get my feet wet with Silverlight 3. In order to get my AutoCompleteBox to display the correct property in the dropdown, I created a custom item template, like so: <navigation:Page.Resources> <DataTemplate x:Key="ItemDataTemplate"> <Grid Height="12"> <TextBlock x:Name="TextBlock"...

Filtering in Silverlight with RIA Services

I have a small SL application that uses RIA services to display employee data (Northwind database) in a data grid. I have a text filter, that works fine against varchar columns but does not filter against a nullable int column. Here is the xaml: <UserControl xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Window...

Create a TabControl fom codebehind at a clickevent of a button

on the click event of a button i have to create two tabs below the button private void bnOpen_Click(object sender, RoutedEventArgs e) { } ...

Maintain scroll position on updating the ItemSource of a silverlight datagrid

I'm using a DataGrid in my silverlight application to display some data that's refreshed on a timer. My problem is that when this happens the vertical scrollbar in the grid resets to the top, whereas I want it to stay in the same position. Does anyone know how I can make this happen? I've tried overriding the ItemsSource property on th...

Silverlight - User Control Binding

Hello, I am learning Silverlight. In the process, I'm trying to build a custom user control. My ultimate goal is to be able to write the following statement in XAML: <my:CustomControl> <my:CustomControl.MainControl> <Canvas><TextBlock Text="Hello!" /></Canvas> </my:CustomControl.MainContent> </my:CustomControl> The content of...

PRISM and Caliburn combined

I am already using Prism, especially the following areas: EventAggregator, RegionManager, Commanding, Dependency Injection (through Unity obviously) Have you used Prism in combination with Caliburn? Which benefits did it offer you? How does Caliburn integrate with Silverlight's Navigation framework? And would you recommend using both f...

How to test UI interaction of Silverlight dialogs?

I am using Silverlight 3.0 Unit Testing, version Silverlight Toolkit November 2009. Apart from unit tests, it allows to do UI interaction tests, typically using AutomationPeer subclasses (eg ButtonAutomationPeer to interact with a Button). Are there AutomationPeer classes to test the interaction with the following: OpenFileDialog Sa...

Properly cancel an image download in Silverlight

I have a set of Image elements that I use to download pictures. All the pictures have to be downloaded, but I wish to download the picture the user is looking at in the first place. If the user changes the viewed picture, I wish to cancel the downloads in progress to get the viewed picture as fast as possible. To start a download I writ...

Can't set style for path in resource dictionary

I create a style for Path in resource dictionary as below: <Style x:Key="HeaderPathStyle" TargetType="Path"> <Setter Property="Opacity" Value="0.8"/> <Setter Property="HorizontalAlignment" Value="Stretch"/> <Setter Property="VerticalAlignment" Value="Stretch"/> <Setter Property="Stretch" Value="Fill"/> ...