silverlight

Embed a website/page into Silverlight

Yes that sounds backwards. I want to create an area or frame in my Silverlight app to host another page from my site. I've seen it done before but I can't seem to find any examples. This way I can control the entire page layout using SL but still use existing aspx pages. thanks ...

Exception when creating new DispatcherTimer()

I'm creating a new DispatcherTimer() in Silverlight 2.0, and the constructor call throws an exception: DispatcherTimer timer = new DispatcherTimer(); This line throws before I can set Interval, Tick, or Start the timer. System.Exception was unhandled by user code Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_U...

silverlight blogs?

With the asp.net MVC framework the blogs of the team members (Rob Conery, Phil Haack etc) really helped me on my way and made me feel comfortable the development was going in the right direction. Is there something similar for Silverlight? -Edit: I would like to mention that I would like to find members of the dev team themselves. Curre...

Extend No-Constructor class

In C#, is it possible to extend a class that has no constructors? Maybe I'm thinking about this incorrectly and just need a kick in the crotch. I have a Silverlight class that extends System.Windows.Media.Transform, With the official release of Silverlight 2, Transform now has no constructor. So, when I compile my class, I get an err...

cross-domain hosted Silverlight app not loading in a https webpage

I want to provide silverlight app to my customer while hosting the app at my own site for streamlined maintenance. my Silverlight .xap is hosted in, let say, domain me-supplier.com i want to embed it in, let say, domain my-customer.com It works perfectly for http://my-customer.com, not for https://my-customer.com i have added t...

In Silverlight, how to invoke an operation on the Main Dispatch Thread?

In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl? In other words, how can I take data provided by an arbitrary worker thread and ensure that it gets processed on the main displatch thread? ...

silverlight keydown event doesn't fire for arrow keys

I have a canvas inside a scrollview. I attached a keydown event handler to the scrollview. For most keys, the handler gets called. However, for the arrow keys, the handler does not get called. Instead, the scrollview gets scrolled in the appropriate direction. I also attached a keyup handler to the scrollview and the keyup does get ca...

What are good references for .Net development with Office Communications Server?

Is is possible to intergrate VOIP capabilities, particularly phone dialing, with Office Communications Server 2007 and .Net? If so, are there any good references for this? I would be especially interested if this could be hosted within an ASP.Net or Silverlight application. ...

set initial sort order in Silverlight DataGrid?

When I first load data into a Silverlight DataGrid control, how can I make the screen look exactly as if the user had just clicked the header of the first column? In other words, the data should be sorted in ascending order according to that column's values, AND the little sort arrow should be displayed in the first column's header. As...

Silverlight 2 UI pattern

I have to build small (for now) admin app in Silverlight2, and would like to use some pattern for binding UI with my BL/DAL. I found view-model-viewmodel and mvp/mvc patterns, where first one (V/M/VM) is specially suited for WPF apps, because it uses rich capabilities of WPF data-binding options. What do you suggest? Can you write simple...

Connecting Silverlight to the local computers COM port

I have been searching high and low for a way to get my silverlight application talking to the COM port on my local computer. Has anybody out there been able to get Silverlight to successfully connect to the COM port of you local computer? If so can you point me to the documentation. ...

Aynchronous web server calls in Silverlight and maximum HTTP connections

Hi, I've read that Silverlight 2.0 imposes by design an asynchronous model when communicating with the web server. I haven't had a chance to experiment with Silverlight, but I assume that it uses a thread-pool to manage threads like in the .NET Framework. Now, since some browsers, most notably Internet Explorer, have an hard-coded limit...

XamlParseException: Attribute in custom control missing, but it's defined!

I sometimes get the following exception for a custom control of mine: XamlParseException occurred Unknown attribute Points in element SectionClickableArea [Line: 10 Position 16] The stack trace: {System.Windows.Markup.XamlParseException: Unknown attribute Points on element SectionClickableArea. [Line: 10 Position: 16] at System.Win...

Image Slider with Silverlight

I have a requirement of creating an Image slider using Silverlight. I need to display 5 images at first. There will be two buttons previous and next. When I'll click the next button another new 5 images will be shown in place of previously diplayed images. Would it be possible for anyone to tell me the solution for this? Someone please...

Silverlight image: load URL dynamically?

I'm tinkering with Silverlight 2.0. I have some images, which I currently have a static URL for the image source. Is there a way to dynamically load the image from a URL path for the site that is hosting the control? Alternatively, a configuration setting, stored in a single place, that holds the base path for the URL, so that each ima...

Is the Silverlight 2 Bible worth purchasing?

Someone on SO mentioned they'd bought a copy and I'm damned if I can find the question again. http://www.amazon.co.uk/Silverlight-2-Bible-Brad-Dayley/dp/0470375000/ref=sr_1_2?ie=UTF8&s=books&qid=1224844673&sr=1-2 Has anyone bought this, if so is it worth it? Also, what about the MS book "Introducing Silverlight 2"?: http:/...

Which Graphical Subsystem for Touchscreen Kiosk Development

I'm starting a hobby project in which I would like to have a graphical, touchscreen interface for interacting with a kiosk-like device running on top of Windows XP Embedded. For development of a rich UI experience, I was considering using WPF. However, a number of demonstration videos that I have come across have used Silverlight, whil...

.Net DataBinding a new object with value type properties

Using data binding, how do you bind a new object that uses value types? Simple example: public class Person() { private string _firstName; private DateTime _birthdate; private int _favoriteNumber; //Properties } If I create a new Person() and bind it to a form with text boxes. Birth Date displays as 01/01/0001 and ...

In Silverlight, how to populate a sorted DataGrid from a dynamically changing connection

I have a data set whose elements are displayed as rows in a DataGrid. The sort order for the rows changes in response to external events. My initial thought was to store the rows as an ObservableCollection and resort the collection after updates. However I ran into two problems: 1) the ObservableCollection does not have a Sort() meth...

Can I setup an IIS MIME type in .NET?

Can I setup a custom MIME type through ASP.NET or some .NET code? I need to register the Silverlight XAML and XAP MIME types in IIS 6. ...