Contains properties that you can use to query system settings.
Assembly: PresentationFramework (in PresentationFramework.dll)
This example shows how to access and use the properties of in order to style or customize a button.
System resources expose several system based settings as resources in order to help you create visuals that are consistent with system settings. is a class that contains both system parameter value properties, and resource keys that bind to the values. For example, FullPrimaryScreenHeight is a property value and FullPrimaryScreenHeightKey is the corresponding resource key.
In XAML, you can use the members of as either a static property usage, or a dynamic resource references (with the static property value as the key). Use a dynamic resource reference if you want the system based value to update automatically while the application runs; otherwise, use a static reference. Resource keys have the suffix Key appended to the property name.
The following example shows how to access and use the static values of to style or customize a button. This markup example sizes a button by applying values to a button.
To use the values of in code, you do not have to use either static references or dynamic resource references. Instead, use the values of the class. Although the non-key properties are apparently defined as static properties, the runtime behavior of WPF as hosted by the system will reevaluate the properties in realtime, and will properly account for user-driven changes to system values. The following example shows how to set the width and height of a button by using values.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.