www.planet-xaml.net
[Silverlight]

Updated Triangle Control for Silverlight 2 Beta 2

by Florian Krüsch June 11, 2008

I've updated my article on the textured triangle control for the new Beta 2 of Silverlight 2. Luckily, only a few changes were necessary:

OnApplyTemplate has become public, the PropertyChangedCallback must be wrapped into PropertyMetaData for DPs and, XAML-wise the TileMode set on the ImageBrush had to go.

The greatest positive surprise in Beta 2 to me is the Visual State Manager addition. I'm very happy with what Microsoft is doing here. Tackling the complexity of the WPF/Silverlight stack by adding higher levels of abstraction is really key for the platform to get wider acceptance, especially among designers.
Chris Schormann has a bunch of valuable posts about VSM.

I'm thinking about another article on The Codeproject, bringing Silverglobe (still Beta 1) and textures together. I have a prototype running already.

Cheers,
Florian

 

Comments:

  • favicon.ico Hey there,
    Awesome work in Silverglobe!
    In fact, I have a small suggestion for you, that I have successfully implemented here:
    It's very useful to have a method to set the center of the globe programatically. To do so, in the main xaml.cs (SilverGlobeControl.xaml.cs), in the "Methods" region, you can add:

    public void AnimateTo(GeoPosition pos)
    {
    _rotationController.AnimateTo(pos);
    }

    Or you could rename it to SetCenter whatever you wish.

    Thanks and keep up the good work!

    Roberto
    # Roberto Sonnino on June 18, 2008
  • Thanks for the suggestion, Roberto. I'll do that when I find the time to rewrite it for Beta2.

    Florian
    # Florian Krüsch on June 18, 2008
  • favicon.ico Hey Florian,

    I've upgraded the control to SL2beta2 and implemented the suggestion above. It was pretty easy, just do the automatic conversion in VS, and then add a reference to System.Net in the SilverglobeSample project.
    The resulting package can be downloaded at:
    http://www.virtualdreams.com.br/files/Silverglobe_2_0_beta2.zip
    Please tell me when you've downloaded it, so I can take it off my server.

    Thanks!

    Roberto
    # Roberto Sonnino on June 24, 2008

Language | Sprache

All[e]  |  english  |  deutsch
Tags
 

Profile

Florian Kruesch

I am working as a freelance software architect, developer and consultant in Düsseldorf, Germany.

My focus is on Microsoft technologies and .NET 3.0, especially WPF, ASP.net and SQL Server.

I've been a lead programmer on the WPF development of the OTTO Vista Store at SinnerSchrader Studios.

My client list includes DHL, LG and Ogilvy Interactive.