How to? WPF Window - Maximized, No Resize/Move -


i'm trying make wpf window opens maximized, no resize/move (in systemmenu, nor in border). should maximized time, except when user minimize it.

i tried put windowstate="maximized" , resizemode="canminimize", when window opens, covers task bar (i don't want it).

i have hook wndproc cancels sc_move , sc_size. can make control conditions in wndproc "if command restore , minimized, restore, else, block" , on.

but point if have way make it. thankz read guys =)

it necessary write windowstate="maximized" resizemode="noresize" in xaml of window:

<window x:class="miscellaneous.editform"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     title="edit form" windowstate="maximized" resizemode="noresize"></window> 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -