WPF [rss]

Posts relating to Windows Presentation Foundation

XAML Databinding Issue ?

Recently, I started having problems with the error "Items collection must be empty before using ItemsSource" popping up after I’d made a few changes to my UI.  I think I understand the root trigger, but I haven’t got time to reason through Read More

Extension Methods - Nice. but not sufficient

I am going to do a longer posting on problems of extending value types, but since I just had to complain on Connect after bumping into the decision not to support operators as extension methods, I had to complain now.  In essence, the restriction Read More

MahJongg Update

I’ve updated the MahJong app, adding support for UI elements embedded in the 3D view, hit detection of the 3D tiles, and a bunch of other stuff, fixes, etc.  I’ll be doing some more posts “Real Soon Now”, once I’ve managed Read More

DispatcherTimer and Timespan(whatever,whatever,whatever,Bad Dog!)

DispatcherTimer seems to have a singularly odd behavior when it comes to specifying the interval.  I was working on the Mah Jongg demo and needed a sub 1 second timer.  No problem I though, I’ll just define a 100ms timespan, as in new Read More

Workflow and Animation – Code

Go here to get previous and subsequent posts in this series. The two classes with primary responsibility for rendering and managing the visual game,GameBoard and GameBoardPresenter,provide a main entry function (SetupBoard() in GameBoard) and Read More

Workflow and Animations - Introduction

Click Picture to see Animation Go here for more posts in this series WPF animations of visual elements require special attention when used in a multithreaded environment or for that matter even in a single threaded environment whenever animations Read More

Animation Article Overview

  These articles illustrate a mechanism you can use to perform sophisticated animations using WPF without needing to make your code overly complex while still adapting to the two key constraints WPF imposes on animation development.  The first Read More