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
Post a Comment