This project has moved. For the latest updates, please go here.

Prevent moving a Childwindow?

Jan 17, 2014 at 3:02 AM
Is there a way to prevent the user from moving a ChildWindow around? I'd like to put mine in a specific location, rather than making it float freely.

Thanks for any help!
Developer
Jan 17, 2014 at 6:33 PM
Hi,

a childWindow can move in it's WindowContainer. If the WindowContainer size is the same as the childWindow size, the ChildWindow will not be movable :
<xctk:WindowContainer x:Name="_windowContainer"
                            Width="300"
                            Height="200">
         <xctk:ChildWindow x:Name="_childWindow"
                           Caption="ChildWindow"
                           Width="300"
                           Height="200"
                           WindowState="Open">
            <TextBlock Text="This is a regular Child Window"
                       Padding="10" />
         </xctk:ChildWindow>
      </xctk:WindowContainer>