Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Thursday, May 15, 2008 - Posts

  • ADO.NET Entity Framework's CompiledQuery when using anonymous projections shows why C# needs "mumble" types

    Ok, that's a really long title for a post, so what the heck do I mean by all that? Well, I've started working with the CompiledQuery class and I've run into a language limitation problem that almost makes any kind of performance gain I might get from CompiledQuery not worthwhile when using projections due to the fact that they cannot be anonymous so you're forced to define a new class yourself to represent the projection. First off, if you're not familiar with CompiledQuery, it's basically an optimization provided by the ADO.NET Entity Framework that enables it to take your LINQ expression once, generate a cached execution plan (not in the SQL sense, but in the entity sense) for it and return you a Func delegate on the fly that takes parameters to allow you to plug in any dynamic values you might need for the query (e.g. for a where clause). Secondly, if you're not familiar with the C# "mumble" type problem, jump on over to this excellent post from Ian Griffiths where he details the issues Read More...
  • I've been Pixel8ed!

    If you are tired of reading my occasional ramblings, you now have the option of " listening" to me expound on the merits of WPF! Craig Shoemaker has just published this podcast on the Infragistics Pixel8 site. I probably reveal a bit too much about myself in this interview, so if you want to preserve the mystery and romance of our relationship, maybe you shouldn't listen to it! (What do you mean, you're not feeling the romance anymore?) Read More...
  • Flash 10, Codename "Astro"

    Adobe vient d'annoncer via son Labs la sortie de Flash 10 codename Astro en version prerelease (beta). On note parmi les nouvelles fonctionnalités phares : Arrivée de la 3D et donc de "this.rotationZ" (la team Silverlight a du boulot ;) Gestion avan... Read More...
  • Nouveau blog sur WPF

    Je publierai dorénavant mes billets sur WPF en français sur CodeS-SourceS . A bientôt dans vos fils RSS ! Read More...
  • Perspective 0.9 - WPF blogging

    I've released the version 0.9 of Perspective. The main features are : A new XBAP online demo application is provided. You can now build multilingual applications that support culture changing at run time. SignalBinding : a binding class which throws conversion events. It prevents to write converter classes. XbapHelper helps you to retrieve URI parameters of an XBAP application. Joystick 2D control. Workshop3D : a ready to use viewport for 3D models, with light, moveable camera and camera control panel. The camera can be controlled by mouse (with joysticks) or by keyboard. New class PieSlice3D to build 3D pie charts. A contribution by Philippe Jovelin, thanks to him. Many 3D shapes have now default texture coordinates, so you can apply a VisualBrush, an ImageBrush or a DrawingBrush on them : Square3D (since previous versions), Polygon3D, Box3D, Bar3D, Conical3D and Spherical3D. The article Perspective : easy 3D programming with WPF has been updated. And I will now blog about WPF on windowsclient.net Read More...
  • Writing your first ShaderEffect for WPF 3.5 SP1

    WPF architect Greg Schechter was written a series of articles on the new hardware accelerated shaders recently released in beta form, as part of .NET 3.5 SP1 beta. This article includes some sample code that was enough to get me started down the path of writing a very simple shader effect - I've dubbed it "watery" but it's more just "wavy". In this example the "waviness" of the effect is bound to the value of the slider at the bottom of the screen. One thing that I thought was very nicely done by the WPF team was the mechanism for passing parameters from WPF into the HLSL code using an attached property declaration like this: public static readonly DependencyProperty WavinessProperty = DependencyProperty.Register("Waviness", typeof(double), typeof(WaterEffect), new UIPropertyMetadata(0d, PixelShaderConstantCallback(0) )); The last part is the most important bit, which wires up the dependency property that has been defined in our C# WPF code to a constant in the [very crude] pixel shader Read More...

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