Skip to main content
net10.0-windows7.0.NETFramework4.8net5.0net6.0net7.0net8.0-windows7.0

PInvoke API (methods, structures and constants) imported from Windows UxTheme.dll.

Published
May 16, 2026
5mo ago
Total Downloads
174.2K
174,227

Install

dotnet add package Vanara.PInvoke.UxTheme --version 5.0.5
ProductVersions
.NET
net10.0-windows7.0net5.0net6.0net7.0net8.0-windows7.0net9.0-windows7.0
.NET Standard
netstandard2.0netstandard2.1
Other
.NETCoreApp3.1.NETFramework4.8

README

Vanara

Vanara.PInvoke.UxTheme NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows UxTheme.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.UxTheme

Functions Enumerations Structures
BeginBufferedAnimation
BeginBufferedPaint
BeginPanningFeedback
BufferedPaintClear
BufferedPaintInit
BufferedPaintRenderAnimation
BufferedPaintSetAlpha
BufferedPaintStopAllAnimations
BufferedPaintUnInit
CloseThemeData
DrawThemeBackground
DrawThemeBackgroundEx
DrawThemeEdge
DrawThemeIcon
DrawThemeParentBackground
DrawThemeParentBackgroundEx
DrawThemeText
DrawThemeTextEx
EnableThemeDialogTexture
EnableTheming
EndBufferedAnimation
EndBufferedPaint
EndPanningFeedback
GetBufferedPaintBits
GetBufferedPaintDC
GetBufferedPaintTargetDC
GetBufferedPaintTargetRect
GetCurrentThemeName
GetThemeAnimationProperty
GetThemeAnimationTransform
GetThemeAppProperties
GetThemeBackgroundContentRect
GetThemeBackgroundExtent
GetThemeBackgroundRegion
GetThemeBitmap
GetThemeBool
GetThemeColor
GetThemeDocumentationProperty
GetThemeEnumValue
GetThemeFilename
GetThemeFont
GetThemeInt
GetThemeIntList
GetThemeMargins
GetThemeMetric
GetThemePartSize
GetThemePosition
GetThemePropertyOrigin
GetThemeRect
GetThemeStream
GetThemeString
GetThemeSysBool
GetThemeSysColor
GetThemeSysColorBrush
GetThemeSysFont
GetThemeSysInt
GetThemeSysSize
GetThemeSysString
GetThemeTextExtent
GetThemeTextMetrics
GetThemeTimingFunction
GetThemeTransitionDuration
GetWindowTheme
HitTestThemeBackground
IsAppThemed
IsCompositionActive
IsThemeActive
IsThemeBackgroundPartiallyTransparent
IsThemeDialogTextureEnabled
IsThemePartDefined
OpenThemeData
OpenThemeDataEx
OpenThemeDataForDpi
SetThemeAppProperties
SetWindowTheme
SetWindowThemeAttribute
UpdatePanningFeedback

| DrawThemeBackgroundFlags
DrawThemeParentBackgroundFlags
DrawThemeTextOptionsMasks
GBF
HitTestOptions
OpenThemeDataOptions
PROPERTYORIGIN
TA_PROPERTY
TA_PROPERTY_FLAG
TA_TIMINGFUNCTION_TYPE
TA_TRANSFORM_FLAG
TA_TRANSFORM_TYPE
TextShadowType
ThemeAppProperties
ThemeDialogTextureFlags
THEMESIZE
WINDOWTHEMEATTRIBUTETYPE
WTNCA
BP_ANIMATIONSTYLE
BP_BUFFERFORMAT
BufferedPaintParamsFlags
AEROWIZARDPARTS
ARROWBTNSTATES
BACKGROUNDSTATES
BACKGROUNDWITHBORDERSTATES
BALLOONSTATES
BALLOONSTEMSTATES
BARBACKGROUNDSTATES
BARITEMSTATES
BODYSTATES
BORDER_HSCROLLSTATES
BORDER_HVSCROLLSTATES
BORDER_NOSCROLLSTATES
BORDER_VSCROLLSTATES
BORDERSTATES
BUTTONPARTS
CAPTIONSTATES
CHECKBOXSTATES
CHEVRONSTATES
CHEVRONVERTSTATES
CLOSEBUTTONSTATES
CLOSESTATES
COLLAPSEBUTTONSTATES
COMBOBOXPARTS
COMBOBOXSTYLESTATES
COMMANDLINKGLYPHSTATES
COMMANDLINKSTATES
COMMUNICATIONSPARTS
CONTENTAREASTATES
CONTENTLINKSTATES
CONTENTPANESTATES
CONTROLLABELSTATES
CONTROLPANELPARTS
COPYSTATES
CREATELINKSTATES
CUEBANNERSTATES
DATEBORDERSTATES
DATEPICKERPARTS
DATETEXTSTATES
DOWNHORZSTATES
DOWNSTATES
DRAGDROPPARTS
DROPDOWNBUTTONLEFTSTATES
DROPDOWNBUTTONRIGHTSTATES
DROPDOWNITEMSTATES
EDITBORDER_HSCROLLSTATES
EDITBORDER_HVSCROLLSTATES
EDITBORDER_NOSCROLLSTATES
EDITBORDER_VSCROLLSTATES
EDITPARTS
EDITTEXTSTATES
EXPANDBUTTONSTATES
EXPANDOBUTTONSTATES
EXPLORERBARPARTS
FILLSTATES
FILLVERTSTATES
FLYOUTPARTS
FRAMEBOTTOMSTATES
FRAMELEFTSTATES
FRAMERIGHTSTATES
FRAMESTATES
GLYPHSTATES
GRIPPERSTATES
GROUPBOXSTATES
GROUPHEADERLINESTATES
GROUPHEADERSTATES
HEADERAREASTATES
HEADERCLOSESTATES
HEADERDROPDOWNFILTERSTATES
HEADERDROPDOWNSTATES
HEADERITEMLEFTSTATES
HEADERITEMRIGHTSTATES
HEADERITEMSTATES
HEADEROVERFLOWSTATES
HEADERPARTS
HEADERPINSTATES
HEADERSORTARROWSTATES
HEADERSTYLESTATES
HELPBUTTONSTATES
HELPLINKSTATES
HORZSCROLLSTATES
HORZTHUMBSTATES
HOTGLYPHSTATES
HOVERBACKGROUNDSTATES
HYPERLINKTEXTSTATES
IEBARMENUSTATES
ITEMSTATES
LABELSTATES
LINKHEADERSTATES
LINKSTATES
LISTBOXPARTS
LISTITEMSTATES
LISTVIEWPARTS
MAXBUTTONSTATES
MAXCAPTIONSTATES
MDICLOSEBUTTONSTATES
MDIMINBUTTONSTATES
MDIRESTOREBUTTONSTATES
MENU_POPUPSUBMENU_HCHOT
MENUPARTS
MINBUTTONSTATES
MINCAPTIONSTATES
MOVESTATES
NAV_BACKBUTTONSTATES
NAV_FORWARDBUTTONSTATES
NAV_MENUBUTTONSTATES
NAVIGATIONPARTS
NONESTATES
NORMALGROUPCOLLAPSESTATES
NORMALGROUPEXPANDSTATES
POPUPCHECKBACKGROUNDSTATES
POPUPCHECKSTATES
POPUPITEMFOCUSABLESTATES
POPUPITEMKBFOCUSSTATES
POPUPITEMSTATES
POPUPSUBMENUSTATES
PROGRESSPARTS
PUSHBUTTONDROPDOWNSTATES
PUSHBUTTONSTATES
RADIOBUTTONSTATES
READONLYSTATES
REBARPARTS
RESTOREBUTTONSTATES
SCROLLBARPARTS
SCROLLBARSTYLESTATES
SECTIONTITLELINKSTATES
SHOWCALENDARBUTTONRIGHTSTATES
SIZEBOXSTATES
SMALLCAPTIONSTATES
SMALLCLOSEBUTTONSTATES
SMALLFRAMEBOTTOMSTATES
SMALLFRAMELEFTSTATES
SMALLFRAMERIGHTSTATES
SPECIALGROUPCOLLAPSESTATES
SPECIALGROUPEXPANDSTATES
SPINPARTS
SPLITTERSTATES
SPLITTERVERTSTATES
STANDARDSTATES
STATUSPARTS
SYSBUTTONSTATES
SYSTEMCLOSEHCHOTSTATES
SYSTEMCLOSESTATES
SYSTEMMAXIMIZEHCHOTSTATES
SYSTEMMAXIMIZESTATES
SYSTEMMINIMIZEHCHOTSTATES
SYSTEMMINIMIZESTATES
SYSTEMRESTOREHCHOTSTATES
SYSTEMRESTORESTATES
TABITEMBOTHEDGESTATES
TABITEMLEFTEDGESTATES
TABITEMRIGHTEDGESTATES
TABITEMSTATES
TABPARTS
TABSTATES
TASKDIALOGPARTS
TASKLINKSTATES
TEXTSELECTIONGRIPPERPARTS
TEXTSTYLEPARTS
THUMBBOTTOMSTATES
THUMBLEFTSTATES
THUMBRIGHTSTATES
THUMBSTATES
THUMBTOPSTATES
THUMBVERTSTATES
TICSSTATES
TICSVERTSTATES
TITLEBARSTATES
TOOLBARPARTS
TOOLBARSTYLESTATES
TOOLTIPPARTS
TOPTABITEMBOTHEDGESTATES
TOPTABITEMLEFTEDGESTATES
TOPTABITEMRIGHTEDGESTATES
TOPTABITEMSTATES
TRACKBARPARTS
TRACKBARSTYLESTATES
TRACKSTATES
TRACKVERTSTATES
TRANSPARENTBACKGROUNDSTATES
TRANSPARENTBARSTATES
TRANSPARENTBARVERTSTATES
TREEITEMSTATES
TREEVIEWPARTS
UPDATEMETADATASTATES
UPHORZSTATES
UPSTATES
USERTILEPARTS
VERTSCROLLSTATES
VERTTHUMBSTATES
WARNINGSTATES
WINDOWPARTS
WRENCHSTATES
BGTYPE
BORDERTYPE
CONTENTALIGNMENT
FILLTYPE
GLYPHFONTSIZINGTYPE
GLYPHTYPE
HALIGN
ICONEFFECT
IMAGELAYOUT
IMAGESELECTTYPE
OFFSETTYPE
SIZINGTYPE
TEXTSHADOWTYPE
ThemeProperty
TRUESIZESCALINGTYPE
VALIGN
| DTTOPTS
INTLIST
MARGINS
TA_TIMINGFUNCTION
TA_TRANSFORM
WTA_OPTIONS
DTBGOPTS
BP_ANIMATIONPARAMS
BP_PAINTPARAMS
HANIMATIONBUFFER
HPAINTBUFFER

Changes from Previous Version

No structural changes between v5.0.4 and v5.0.5.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 10 target frameworks; confirm the exact target used by your application.The published metadata declares 32 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.