SystemParameters
Friday, June 29th, 2007It takes time getting used to a new framework like WPF. The other day I was looking for system information similar to what the System.Windows.Forms.SystemInformation static class provided in Windows Forms. It took a little looking, but the equivalent WPF object is the System.Windows.SystemParameters class. It has all the same goodness that you would expect, like ScrollWidth and MenuBarHeight and some new things like IsTabletPC. I should also point out that there are similar classes for fonts and colors called System.Windows.SystemFonts and System.Windows.SystemColors respectively.