Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Monday, September 03, 2007 - Posts

  • School Bus Jump

    We have an emerging summer tradition in our family.  It’s a simple one: go to the Evergreen Speedway Fouth of July Demolition Derby Extravaganza no matter what (because it’s awesome)!  How awesome?  Fortunately our friend Joel caught this pinnacle moment on camera. Read More...
  • Binding to the Current Item in WPF

    When working with collection-like data sources in WPF, you can read properties of the selected item by writing your binding expressions as though there were only one source object. Here’s an example: < DockPanel DataContext = " {x:Static Fonts.SystemFontFamilies} " > < TextBlock DockPanel.Dock = " Top " Text = " {Binding Baseline} " /> < ListBox ItemsSource = " {Binding} " IsSynchronizedWithCurrentItem = " True " /> </ DockPanel > The data source here is a collection – an array of FontFamily objects. The ListBox displays all of the items in this array. However, the TextBlock has a binding expression that seems to make no sense – it tries to read the Baseline property, and yet the source, an array, has no such property. When WPF encounters a binding to a non-existent property on a collection, WPF has a fallback strategy: it looks for the named property on the current item. Consequently, the TextBlock shows the Baseline property of the currently selected font. This Read More...
  • IronLisp, MOP and more

    Scott's last post had a link to a new opensource Lisp project for the DLR, called IronLisp (in homeage to IronRuby and IronPython). I've been a fan of Lisp for a number of years and I'll keep my eye on IronLisp to see how it goes. If your interesting in running Lisp on the CLR then should also check out fellow brit Rob Blackwell's L# and Common Larency too. If your interested in trying out Lisp then you should really download a Lisp compiler, Common Lisp (CL) is an ANSI standard (X3.226-1994) and will contain all the language features and object system . The CLR\DNL compilers will still be short of features so to get a true grasp of the language i'd start with a native compiler. Lisp has several object systems, the CL object system is called the Common Lisp Object System (CLOS). CLOS is often built around a Meta Object Protocol (MOP). CLOS is prehaps one of the most powerful object systems I have come across and when I heard about Rubys object system is reminded me a lot of CLOS. I've been Read More...
  • [WPF] Comment créer son propre fournisseur de données (Data Provider) ?

    Windows Presentation Foundation est livré, en standard, avec 2 fournisseurs de données (Data Provider): XmlDataProvider ObjectDataProvider Dans certains cas, il peut-être intéressant de développer le sien Pour cela, c'est extrèment simple: i... Read More...

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