是不是 得 重写 DragMove()这个方法呀、 、 

解决方案 »

  1.   

    设置一下window的left、top属性就行了。
      

  2.   


    <Window x:Class="SharpDXCanvasTest.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:SharpDXCanvasTest" WindowStartupLocation="Manual" Top="20" Left="20">
        <Grid>
        </Grid>
    </Window>