wpf - Borderless window application takes up more space than my screen resolution -


i have created borderless application in wpf, , works pretty good. however, when set windowstate full screen, application takes more space screen resolution, there pixels outside screen in directions! (looks hard coded negative margins added hide default border)

any ideas how prevent happening?

my xaml:

<window x:class="myapp.shell"     windowstyle="none"     borderthickness="0"     allowstransparency="true"     background="transparent"     resizemode="canresizewithgrip"     windowstate="{binding mainapplicationwindowstate}"     ... 

also, problem have seen windows toolbar / taskbar covered in fullsize state, looks "actual" screen height used , not "available" screen height, meaning screen height minus windows toolbar / taskbar!

anyone found solution these issues?

thanks

i solved problem way:

xaml:

windowstyle="none" left="0" top="0" width="{binding wpfsettings.width}" height="{binding wpfsettings.height}"> 

visual basic:

public class wpfsettings    public readonly property width() double                return system.windows.systemparameters.primaryscreenwidth       end    end property     public readonly property height() double                return system.windows.systemparameters.primaryscreenheight       end    end property end class 

it works pretty good.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -