Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Getting Accent brush color of a Window 8 machine through Visual C# code
WhatsApp
Selva Ganapathy
9y
8
k
0
0
25
Blog
AccentBrushColor.zip
Hope we all might know the from Widows 8, Microsoft provides a feature name Accent Brush that enables us to have our own colors set to Window App (Windows Phone) as well that may provide more elegant UI theme to user expectations. And some of us think that it will be more complex to retrieve the accent color through Visual C# code. But here it come so simple, that we can get the Accent brush color of the through “ uxthem.dll” and the following code snippet may help it with a small demonstration.
[DllImport(
"uxtheme.dll"
, EntryPoint =
"#95"
)]
public
static
extern uint GetImmersiveColorFromColorSetEx(uint dwImmersiveColorSet, uint dwImmersiveColorType, bool bIgnoreHighContrast, uint dwHighContrastCacheMode);
[DllImport(
"uxtheme.dll"
, EntryPoint =
"#96"
)]
public
static
extern uint GetImmersiveColorTypeFromName(IntPtr pName);
[DllImport(
"uxtheme.dll"
, EntryPoint =
"#98"
)]
Up Next
Code for Submit, Update , Delete in Window Form C#
Ebook Download
View all
DateTime in C#
Read by 1.3k people
Download Now!
Learn
View all
Membership not found