//更新记录每次背景移动后背景Canvas的Position public void UpdataBackgroundLastPosition() { LastLeftValue = (double)FamilyCanvas.GetValue(Canvas.LeftProperty); LastTopValue = (double)FamilyCanvas.GetValue(Canvas.TopProperty); }