TransperancyKey and Contrast Issue
Hello everyone, I am working on a transparent form application, and as you can see in the image, color distortions occur in the text.
One possible solution that comes to mind is dynamically adjusting the forecolor based on the colors behind the application. However, I haven't figured out how to capture the background colors yet.
8 Replies
One more example:
TransperancyKey = White
BackColor = White
Labels ForeColor = Black
WinForms has never really supported "true" transparency
move to WPF or Avalonia (and there you should avoid the designer!)
I see that, so looking a solution for winform. There should be š
By the way, i tried 2-3 times WPF but 0 knowledge xaml. It confused me. May i check avalonia.
What do you mean "avoid the designer"?
$rulesofwpf
The designer that comes with Visual Studio just sets the margin as an absolute position, so when you resize the app or when the size doesn't match the size of the designer the layout will go haywire
Margin is the spacing between elements
Oh Avalonia supports cross-platform. I like it. So do you have any suggestion about xaml documantation/education series?
XAML is fairly close to HTML in terms of layout and controls
Avalonia (close to WPF): https://docs.avaloniaui.net/docs/basics/user-interface/introduction-to-xaml
WPF: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/xaml/?view=netdesktop-9.0
But there