March 12, 2012

Ditch the Grids and Use DockPanels

I have worked extensively with WinForms and WPF/Silverlight and noticed that docking/dock panels are not used that often.  At least this is the case where I work.  I find this surprising given their power and ease of use. Using XAML, why would a programmer choose a complex Grid/StackPanel setup over a DockPanel?  Or on the WinForms side, set the anchor properties for control rather than simplify things with the dock property? Read more

October 6, 2011

Creating a Crawl Control in WPF

A few weeks ago I was watching CNN when an interesting blurb scrolled by on the crawl at the bottom of the screen.  Normally, the crawl is not something I notice, but I thought to myself, "I wonder if I can implement one in WPF."  I had never done any animations before in WPF, and this seemed like a good way to start. So I gave it a shot. My initial instinct was to bring up Google and see if anyone else had done it. Read more

© Joe Buschmann 2020