c# - Make WPF MahApps MetroWindow non-draggable -


i've started using mahapps wpf. after converting wpf window metrowindow it's no more locked. standard wpf , following settings windowstyle="none" resizemode="noresize window not movable.

however metrowindow movable. don't want users able move window around. how can achieve metrowindow?

as @mathew said, can set iswindowdraggable property of metrowindow false. sample code can this:

<controls:metrowindow               x:class="mynamespace.window1"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"              xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"               iswindowdraggable="false"              resizemode="noresize"              windowstyle="none"              showtitlebar="false"              >               .....  </controls:metrowindow> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -