I am currently making a media player using WPF and am facing a problem.
I want the layout to have no regular window borders and shadow. I did this by setting WindowStyle = none and AllowTransparency = true. All this works very well if I do not want to use it in full screen mode. As soon as I try to configure WindowState to maximize, it fades out like crazy (it cuts off all edges). This is apparently caused by the AllowTransparency = true part. If I return its value false, the maximized part will work as intended. Unfortunately, I cannot install AllowTransparency after launching the application. I can compensate for this somewhat by using the border and adjusting it, but actually it does not look right, and I'm not sure that it will work at different resolutions.
So to summarize:
- Is it possible to maximize WindowState's performance, as usual, with AllowTransparency = true?
- Or there is another way to make a window not have a normal window border without setting AllowTransparency = true
- Or is there a better way to make an application full screen?
Does anyone have a solution or idea to accomplish this?
source
share