XAML insertion and insertion of custom styles/themes in Windows Forms.

The goal is just to change the "selection" color that is shown when the cursor passes over the menu item, or even when selecting. Globally for the application or just for this Form, it doesn't matter. I found Microsoft documentation on the topic: https://learn.microsoft.com/en-us/windows/apps/design/style/color The uses of XAML are mentioned there, but I didn't know how to configure all of this correctly. Bind the XAML to the Form/globally to the application, etc. On Google, there are only three results for the exact term "ListAccentLow", for example. The desire is to just replace the specific "selection" colors when the cursor passes over or selects the menu item. Not restructure the entire theme color scheme. Additional detail: "cursor selection color" always overlap the BackColor. Changing this when the cursor passes over the item does not result in any visual difference. I'm using C#, .NET Framework 4.7.2 and Visual Studio 2022.
Color in Windows apps - Windows apps
Learn how to use color effectively in your Universal Windows Platform (UWP) app by manipulating accent colors and theme resources.
No description
No description
No description
7 Replies
leowest
leowest10mo ago
im roayly confused here you're listing 3 different technologies, winform, wpf and uwp, which one are you actually using? XAML is used in WPF UWP also have its own version of XAML Winforms does not use XAML at all its completely different way to draw and render controls
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Deleted User d66933ff
@leowest @TeBeMadCow Thank you very much for the answer, I thought it wasn't going to be answered. I started all this yesterday and I also ended up getting a little confused. sorry! but, answering your question, I'm using Windows Forms. What I know is that I wanted to change the lighter "blue" highlight color that appears when the cursor passes over menuStrip items. I researched and didn't find much about it, but I saw mixed things. Any idea is important for me, I'm very grateful! thanks!
No description
leowest
leowest10mo ago
if you want a customizable UI u should go with WPF not only its much easier to customize compared to winforms but it also have plenty of libraries that already makes it look really nice
leowest
leowest10mo ago
for changing the hover colors of the menu on windows form u can try https://stackoverflow.com/questions/9260303/how-to-change-menu-hover-color
Stack Overflow
How to change menu hover color
How to change the Hover (mouse over) color of a Windows application menu? Any method in C# ? OR Any way by using Windows API (DllImport) ? See image :
leowest
leowest10mo ago
for any controls u want to change on winforms, u pretty much have to do similar work of inheriting the control and overriding some of its method to achieve what u want whereas in WPF you use XAML to change what controls look like.
Want results from more Discord servers?
Add your server