Custom WPF dependency properties and routed events
As mobile computers become increasingly prevalent, battery life has become more important. Hardware manufacturers are aware of this and design mobile devices with battery consumption in mind. But can the same be said for your software? If not, maybe you should begin to think about coding software that is power-aware. Both Windows® XP and Windows Vista™ provide system information to enable your applications to do just that. In this article, I provide a starting point from which developers can understand power awareness in their Windows Presentation Foundation applications. First, you must understand that Windows Presentation Foundation itself does not inherently make power notifications available to a would-be power-aware application. You’ll see that for this functionality, my sample relies on the operating system—either Windows XP or Windows Vista (the operating systems on which Windows Presentation Foundation is designed to run). Continue reading on MSDN Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!