December 12th, 2009
by bg
One new feature introduced in the Silverlight 4 beta that caught my eye was the ability to communicate with a Silverlight app via COM. It definitely opens up some powerful ways to interact with the Windows desktop environment in Silverlight. I mocked up this quick demo just to see how it might work [...]
Get the code here: TestingInIsolation.zip
Unit testing classes that touch systems like a database or the file system used to be quite a laborious task, but with some of the free testing tools available on the web today, the job has become much easier. For this example, I’ll use three readily available testing tools:
Rhino Mocks [...]
When you get set a WPF window’s WindowStyle to None, the window will cover up the task bar when you set its WindowState to Maximized. I’ve seen various approaches to handling this through:
Overriding the WindowProc function and handling the WM_GETMINMAXINFO message
Using the SystemParameters for the primary screen
Another approach that seems to work quite well is [...]