Rants Tagged with “Silverlight 2”

1  2  3  4  5  6  7  8  9  >  >>  (Total Pages: 9/Total Results: 83)

Base Classes for User Controls

Silverlight Logo

I am still working with Siebrand Dijkstra and his people at School Master, BV and they've opened my eyes to another interesting development.

In looking at their code, I convinced them that their interface might be better as an Abstract class that derives from UserControl for some user controls they are creating:

public abstract class OurUserControl : UserControl
{
  // ...
}

All was well until we tried to get the XAML partial class to compile with their class.  The problem revolved the problem that the partial class that the XAML file creates derives from UserControl, no matter what we did in our 1/2 of the partial class: 

public partial class Page : OurUserControl
{
  public Page()
  {
    InitializeComponent();
  }
}

So I set out to see if there was a solution.  In looking at the XAML editor in Visual Studio I noticed the x:Subclass property of the UserControl element:

<UserControl x:Class="Foo.Page"
             x:Subclass="Foo.OurUserControl"
    xmlns="..."
    xmlns:x="...">
  ...
</UserControl>

This didn't work, the base class for the generated class (page.g.cs) was still UserControl. I tried to figure out another way when their developers decided to try and change the UserControl to the XAML instance of their class, adding their namespace to the XAML:

<my:OurUserControl x:Class="Foo.Page"
                   xmlns:my="clr-namespace:Foo"
          xmlns="..."
          xmlns:x="...">
  ...
</my:OurUserControl>

I was so sure that this wouldn't work that I dissuaded them from even trying, but they persisted. Oddly, it worked...even without the x:Subclass attribute. I am still a little surprised it worked. The only drawback is that Blend does not support it but expect that it will be fixed by release...at least I hope so.

Now I have to figure out what the heck x:Subclass is really for.  Where's my Reflector?

Blend Container Editing

Silverlight Logo

UPDATE: The client doesn't mind that I mention them so I'll tell you that its the great people at SchoolMaster.  Siebrand Dijkstra and his crew are doing some interesting things with Silverlight.

I love teaching the Silverlight Tour as pretty much every class I teach I learn something new. I get used to certain features of Blend that do what I need but because of some bugs, I have gotten too good at hand-editing my XAML. In my current class (a private class for a Dutch software company), one of their very bright engineers showed me this trick:

I was explaining how you can specify the rows/columns in the main grid by clicking on the top/left bars as seen below:

I was starting to explain that the nested grid must be edited by hand or by using the row/column editor when I hand raised in the back.  He explained that if you double click on a container (or a ContentControl), it will switch to editing that container with the same functionality.  He pointed out that the yellow outline indicates the current container focus:

Cool!  That will make a lot of my editing much easier.  I started playing around with the feature when I got back to the hotel and found out that it works with ContentControls too (Button, etc.):

This way I can draw directly inside a button.  I always used some odd tricks to get this to work.  I hope this is relatively new...I'd feel silly if its been there since v1.0.

Let the ridicule begin!

Deep Fried Bytes Interview - Part 2

Silverlight Logo

In this second part of my interview, Keith Elder and Chris Woodruff to talk about all things Silverlight. This episode gets deeper in to the good and bad of Silverlight 2 development today.

 

VS2008 + Silverlight 2 Beta 2 - Update

Silverlight Logo

After some discussion, Mike Flasko (Program Manager, ADO.NET Data Services) has clarified the relationship between the Silverlight 2 Beta 2 Data Services Library and the SP1 of VS2008/.NET 3.5.  Specifically he says:

While the Silverlight Beta 2 data services library may work in some scenarios against a .NET Framework 3.5 SP1 RTM server, you should NOT count on the two being fully compatible with each other.

For me, I am going to wait to roll up to SP1 RTM until Silverlight 2 RTM's.  Caveat emptor. Follow the above link to read his full discussion.

I've been Fried - Part 1!

Silverlight Logo

Recently I sat down with Keith Elder and Chris Woodruff to talk about all things Silverlight. I guess they sparked my long-windedness because we talked so long they had to split into two parts.  We discuss basic Silverlight topics as well as how I think the Olympics will impact Silverlight and even some comparisons with similar Adobe products.  Go grab it while its hot.

VS 2008 SP1 RTM + Silverlight 2 Beta 2 == No ADO.NET Data Services

Silverlight Logo

UPDATE: This may be incorrect.  I am working with Microsoft to understand if I got this wrong.  I'll update this blog once I get the story right.

As everyone has announced already, Visual Studio 2008 and .NET 3.5 have released an SP1 that includes a bunch of fixes as well as the Entity Framework as well as ADO.NET Data Services. To support this, the Silverlight team dropped a new version of the Visual Studio tools that work with Silverlight 2 Beta 2 and Visual Studio 2008 SP1.

The one caveat is that the Silverlight library for ADO.NET Data Services is not compatible with the RTM of .NET 3.5 SP1's version of ADO.NET Data Services.  Since its not compatible, if you are using ADO.NET Data Services with Silverlight, you should wait to upgrade to Visual Studio/.NET SP1 until Silverlight 2 is released (there aren't any release dates for this yet). 

Note, that this is a little confused by the fact that SQL Server 2008 (released last week) requires Visual Studio 2008 SP1 RTM to install, so if you need both Silverlight 2 Beta 2 to work with ADO.NET Data Services and SQL Server 2008, there is no good solution for getting all three installed at once.

Olympics Without Silverlight?

Silverlight Logo

UPDATE: Silverlight is now required to view the video...it no longer allows a downgraded experience.

I've been poking around the NBC-Olympic site.  There has been consternation that Flash is used on the site too.  The deal has been that the video playing would be done using Silverlight (which is why I am linking to http://www.nbcolympics.com/video). The enhanced player is really a nice design and it lets you view four events at once and see real-time stats.  Impressive.

To dig deeper like I like to do, I decided to see what the experience would be like for people who don't have Silverlight installed.  This is the prompt I get from the site:

What's interesting to me is that you can view video without Silverlight, but you get a better experience with Silverlight.  If you can proceed without it, I wonder how many installations this will actually create.  I am sure still a big #, but it would be nice to have required it...oh well.

Silverlight 2 and the Olympics

Silverlight Logo

Tomorrow the Olympics starts and for Silverlight 2 its a big deal. In case you've been under the rock, Microsoft announced at MIX '08 that it had an agreement with NBC to broadcast every minute of every event of the Olympics through a Silverlight 2 driven web site. Its big...really big.

As far as I am concerned, this is a big risk, big reward sort of scenario. Lets discuss reward first. This puts Silverlight 2 squarely in the eyes of lots of end-users. This will help produce ubiquity of the Silverlight 2 runtime. This is going to get a lot of users to install the bits. But what's the risk? There are two risks:

  • Silverlight 2's Installation causes problems
  • Video Streaming can't scale

Installation issues may cause some end-user headaches, but hopefully it should be pretty smooth.  I don't think this will happen.  Video streaming on such a large scale is a bigger risk I think. Microsoft has been in this business a long, long time so I doubt its going to be an issue...but...if it doesn't scale correctly it will be bad.

The problem is that the actually streaming scalability has zero to do with Silverlight 2. Let me say that again, Silverlight 2 can play streamed video but if it doesn't scale, its not Silverlight 2's fault. Unfortunately, the next day it will be the TechCrunch's, CNet's and even Mary Jo's lead story.

As Silverlight 2 developers, we are in with Microsoft on this one.  If it succeeds, it will make the Silverlight 2 RTM that much bigger with more demand for the skills involved.  If it fails, it will be a scar on the face of Silverlight that will be hard to overcome.

I'll be watching with bated breath and clenched cheeks...will you?

The Silverlight Tour Now Available in Spanish!

Silverlight Logo

I am proud to announce that in partnership, with DevWorx of México, the Silverlight Tour will now be available in Spanish for the Latin American and Spanish markets.  The first three classes are happening on:

  • September 29th - October 1st, 2008 - Mexico City, México
  • September 29th - October 1st, 2008 - Guadalajara, México
  • October 8th - 10th, 2008 - Monterrey, México

I gladly welcome DevWorx to the family of Silverlight Tour partners.  If you are want to learn Silverlight 2 and are looking for a class in Spanish, they can definitely help you out!

New DeepZoom Composer Build

Silverlight Logo

Microsoft has released a new version of their DeepZoom Composer tool that adds a number of features including panoramic stiching and integration with PhotoZoom!  Go Grab it!