Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Saturday, September 29, 2007 - Posts

  • XAML CoverFlow Element

    This example show how to make an iTunes like "CoverFlow" single element in XAML (Silverlight/WPF). Note that underline values are related to adjust angle and perspective of element. < Canvas xmlns = " http://schemas.microsoft.com/client/2007 " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Width = " 640 " Height = " 480 " x:Name = " Page " > < Canvas.Clip > < RectangleGeometry Rect = " 0,0,640,480 " /> </ Canvas.Clip > < Canvas.Background > < LinearGradientBrush EndPoint = " 0,1 " StartPoint = " 0,0 " > < GradientStop Color = " #FFB7C1DA " Offset = " 0 " /> < GradientStop Color = " #FFE2EAFF " Offset = " 0.5 " /> < GradientStop Color = " #FF394157 " Offset = " 1 " /> </ LinearGradientBrush > </ Canvas.Background > <!-- Cover --> < Canvas Width = " 200 Read More...
  • Cleaning up XAML code and improving parsing time (with Blend and Studio)

    XAML being XML-based, it needs to be parsed and processed when the code is loaded in the application. WPF allows multiple scenarios, for example pre-compiling the XAML to BAML (binary application markup language), which is usually embedded into an assembly. This speeds up loading time, of course. Another option is to leave the unprocessed, uncompiled XAML file on the server (or in the "bin" folder of the application), and to load that file on demand when it is needed. This step involves the conversion from XAML (a text-format) to a stream, then converting the stream to a collection of XML nodes, and then using these XML nodes to build the actual WPF objects [1] . This all takes time. One way to speed up this process is to clean up the XAML code. All the WPF controls' properties have default values. By knowing what these default values are, you can write less XAML code, and this code you don't write won't parsed! This is a win-win situation. The only disadvantage of this is that we have Read More...
  • [Silverlight] Le guide de déploiement en entreprise enfin disponible !

    Via le blog de Tim Sneath, on apprend que David Tesar vient de mettre à disposition un document intitulé "The Silverlight Enterprise Deployment Guide". De quoi s'agit-il ? Et bien tout simplement d'un document expliquant, aux administrateurs systèmes... Read More...
  • The Mathematics of Charmin®

    A couple years ago a friend of mine got a New York City Teaching Fellowship to teach in the public schools here. The subject she chose to teach was mathematics because, as she said, "In math there's only one correct answer." That statement came to mind while I was sitting in deep contemplation pondering a package of Charmin, a product that Procter & Gamble discreetly refers to as "bathroom tissue" but which in our genteel household goes by the name papier de twalay , as in "Hey, who left one square of papier de twalay on the roll?" Charmin comes in four distinct roll sizes, called Regular, Big, Giant, and Mega. No, these sizes do not accomodate four different sizes of bums. The Big roll has twice as many sheets as the Regular, the Giant has 2.5 times as many sheets as Regular, and Mega has four times as many, as shown on this convenient chart: The Mega roll is so big that it generally requires an adapter to fit in the typical puny papier de twalay dispenser. Each sheet on the roll, Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us