Blue Theme Orange Theme Green Theme Red Theme
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Home | Forums | Videos | Photos | Blogs | Beginners | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » Deployment » February 2006 CTP: WinFX Runtime Components

February 2006 CTP: WinFX Runtime Components

Microsoft has released their February 2006 CTP WinFX runtime components. According to Tim Sneath, a Windows Vista Technical Evangelist, this release offers a number of performance improvements and is supposedly API and/or feature complete.

Page Views : 10838
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Team Foundation Server Hosting
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Microsoft has released their February 2006 CTP WinFX runtime components.  According to Tim Sneath, a Windows Vista Technical Evangelist, this release offers a number of major performance improvements and is API and/or feature complete. This said, "there shouldn't be any more breaking changes between now and RTM".

Here are the relevant links:

Thanks to Karsten Januszewski, here is a list of the major breaking changes surrounding this release: 

1) The following XML namespace Uris are modified: 

OLD
http://schemas.microsoft.com/winfx/avalon/2005

NEW
http://schemas.microsoft.com/winfx/2006/xaml/presentation

OLD
http://schemas.microsoft.com/winfx/xaml/2005

NEW
http://schemas.microsoft.com/winfx/2006/xaml

2) The syntax for mapping a CLR namespace to an XML namespace has changed. This is true for namespaces in the same assembly or different a different assembly.  A Mapping Processing Instruction is no longer necessary. 

Mapping PI for same assembly

OLD
<?Mapping XmlNamespace="local" ClrNamespace="MyCompany.MyProduct" ?>
<... xmlns:my="local" >

NEW
<... xmlns:my="clr-namespace:MyCompany.MyProduct" >

Mapping PI for different assembly

OLD
<?Mapping XmlNamespace="local" ClrNamespace="MyCompany.MyProduct" Assembly="someDLL" ?>
<... xmlns:my="local" >

NEW
<... xmlns:my="clr-namespace:MyCompany.MyProduct;assembly=someDLL" >

For fully specified assembly names, follow the syntax outlined here: http://msdn2.microsoft.com/en-us/library/system.reflection.assemblyname.aspx

3) Specifying columns and rows in Grids is now stricter.

OLD
<Grid>
   <ColumnDefinition />
</Grid>.

NEW
<Grid>
  <ColumnDefinitions>
    <ColumnDefinition/>
  </ColumnDefinitions>
</Grid>

4) Increased strictness with databinding such that binding statements must be set using attribute syntax.

OLD
<TextBox.Text>{Binding}</TextBox.Text>

NEW
Text = "{Binding}"

5) System.Windows.Serialization is now System.Windows.Markup

6) UserControl has changed to be a ContentControl. The FixedTemplate property has beenremoved.

OLD
<UserControl>
 <UserControl.FixedTemplate>
    <Grid>
    </Grid>
 </UserControl.FixedTemplate>
</UserControl>

NEW
<UserControl>
  <Grid>
  </Grid>
</UserControl>

7) Removing MediaElement.Player property, and the player methods of MediaPlayer onto MediaElement. 

MediaElement myME;

OLD
myME.Player.Play();

NEW
myME.Play(); // new

8) Behavior change to media

In the Jan CTP, the following XAML would play the video file until the file ended, or until the MediaElement was GCd. 

<MediaElement Source="a.wmv">

A MediaElement now stops when it is Unloaded by default.

If MediaElement is incorporated into a visual that does not propagate OnLoaded and Unloaded events (such as VisualBrush), it won't play automatically on Load. There are a number of work-around for this:

If you want to preserve the old behavior of MediaElement of starting to play at parse time rather than OnLoaded - <MediaElement Source="foo" UnloadedBehavior="Play"/>

If you want to use a Storyboard - <MediaElement UnloadedBehavior="Manual"/>

If you want to use code-behind - <MediaElement UnloadedBehavior="Manual"/>

9)
In order to insert an XML data island into a XAML file, the XML source must be wrapped in an x:XData tag:

OLD
<XmlDataProvider x:Key="aXmlDP">
    <Root xmlns="">
        <Number type="int">333</Number>
    </Root>
</XmlDataProvider>

NEW
<XmlDataProvider x:Key="aXmlDP">
    <x:XData>
        <Root xmlns="">
            <Number type="int">333</Number>
        </Root>
    </x:XData>
</XmlDataProvider>

10) VideoDrawing is broken in this build.

11) SinglePageViewer is now FlowDocumentPageViewer

12) The relative ource binding syntax has changed

OLD
{Binding Path=foo, RelativeSource=/TemplatedParent}

NEW
{Binding Path=foo, RelativeSource='{RelativeSource TemplatedParent}'}

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Doug Cook
Doug is a user interface developer in Austin, TX. Currently, he is working with Windows Vista and WinFX (.NET 3.0) and is an active participant in a number of Microsoft beta programs.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Nevron Gauge for SharePoint
Become a Sponsor
 Comments
Team Foundation Server Hosting
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.