I'm currently making a media player using WPF and have come across a problem.
I want the layout to have no regular windows borders and a dropshadow. I have done this by setting WindowStyle=none and AllowTransparency=true. This all works very well, as long as I do not want to use it in fullscreen. As soon as i try to set WindowState to maximized, it overscans like crazy (it cuts off all the edges). This is apparently caused by the AllowTransparency=true part. If I set this back to false, the maximized part works as intended. Unfortunately I cannot set the AllowTransparency once the application is started. I can somewhat compensate this by using a border and adjusting the margin of that, but it doesn't really look right and I am not sure it will work on different resolutions.
So to sum up:
- Is it possible to make the WindowState maximized work like normal with AllowTransparency=true?
- Or is there another way to make a window not have the normal windows border without setting AllowTransparency=true
- Or is there a better way to make an application go fullscreen?
Does anyone have a solution or an idea to accomplish this?