ClassSystemSkinManager
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class SystemSkinManager
Inheritance: objectSystemSkinManager
Constructors
SystemSkinManager()
Declaration
public SystemSkinManager()
Fields
DefaultElement
Used to instruct the system skin painting mechanism that a custom painting will be performed in the PaintElementSkin method.
Declaration
public static readonly VisualStyleElement DefaultElement
Field Value
EmptyElement
Used internally by the framework to determine whether we just want to skip TPF's drawing.
Declaration
public static readonly VisualStyleElement EmptyElement
Field Value
Properties
CurrentElement
Gets the currently attached element.
Declaration
public VisualStyleElement CurrentElement { get; }
Property Value
Instance
Gets the only instance of this manager.
Declaration
public static SystemSkinManager Instance { get; }
Property Value
IsVistaOrLater
Declaration
public static bool IsVistaOrLater { get; }
Property Value
Returns true on Windows Vista or newer operating systems; otherwise, false.
Renderer
Declaration
public VisualStyleRenderer Renderer { get; }
Property Value
UseSystemSkin
Determines whether system skins will be applied on RadControls
Methods
GetPartPreferredSize(Graphics, Rectangle, ThemeSizeType)
Declaration
public Size GetPartPreferredSize(Graphics g, Rectangle bounds, ThemeSizeType type)
Parameters
g
bounds
type
Returns
GetThemeColor(ColorProperty)
Gets the Color defined for the current element.
Declaration
public Color GetThemeColor(ColorProperty color)
Parameters
color
Returns
NotifyChange()
Invalidates all opened forms upon a user-triggered change in this class.
Declaration
public void NotifyChange()
PaintCurrentElement(Graphics, Rectangle)
Paints the current element (previously specified by the SetCurrentElement method) on the provided graphics surface, within the desired bounds.
SetCurrentElement(VisualStyleElement)
Sets the specified element as the "Current" for painting.
Declaration
public bool SetCurrentElement(VisualStyleElement element)
Parameters
element
Returns
True if the element may be painted (there is a theme part defined for it), false otherwise.