Friday, May 30, 2008, 09:00 AM
Posted by Ruben Steins
At the WindowsVista blog you can get a nifty demonstration of how the Surface MTI will be implemented in Windows 7 on a Tablet PC... Swanky!Posted by Ruben Steins




( 2.5 / 20 )





( 2.5 / 20 )
SystemParameters class (which is contained within the PresentationFramework.dll) is a collection of about 150 properties you can retrieve information about the current environment from. It also specifies a ResourceKey for each of those, so you can use them for instance as a Dynamic Resource:
<Setter Property = "Height" Value= "{DynamicResource {x:Static SystemParameters.CaptionHeightKey}}"/>
CaptionHeight), or that of the menubar (MenuBarHeight). You can also retrieve a lot of the settings a user might have set for performance or esthetical reasons, such as the dropshadows and menu fading. Finally there’s a lot of information about the system itself or the way it’s setup: IsSlowMachine lets you know the whether or not the machine has a low-end processor, IsRemoteSession indicates whether or not the user is connected through a Remote Desktop or Teminal Services and IsMousePresent shows you if a mouse is connected to the system.