|
@@ -1012,10 +1012,14 @@ namespace PDF_Master.Views.PageEdit
|
|
|
ImgPicture.Source = tempItem.Image;
|
|
|
xPos = e.GetPosition(ListPageEdit).X - item_x;
|
|
|
yPos = e.GetPosition(ListPageEdit).Y - item_y;
|
|
|
+
|
|
|
+ ImgPicture.Visibility = Visibility.Visible;
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ ImgPicture.Visibility = Visibility.Collapsed;
|
|
|
+
|
|
|
DragDropHelper.DragOver(this, e);
|
|
|
//从外部拖入的逻辑
|
|
|
//var pic = ToBitmapSource(dragingEnterPath);
|
|
@@ -1038,14 +1042,16 @@ namespace PDF_Master.Views.PageEdit
|
|
|
//虚拟化影响到该值计算
|
|
|
var p = VisualTreeHelper.GetOffset(listBoxItem);//计算控件在容器中的偏移(位置)
|
|
|
LineInset.Visibility = Visibility.Visible;
|
|
|
- if (!isDragingEnter)
|
|
|
- {
|
|
|
- ImgPicture.Visibility = Visibility.Visible;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- ImgPicture.Visibility = Visibility.Collapsed;
|
|
|
- }
|
|
|
+
|
|
|
+ //优化 虚影显示时机,暂时注释这一部分
|
|
|
+ //if (!isDragingEnter)
|
|
|
+ //{
|
|
|
+ // ImgPicture.Visibility = Visibility.Visible;
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // ImgPicture.Visibility = Visibility.Collapsed;
|
|
|
+ //}
|
|
|
|
|
|
var panel = GetWrapPanel(ListPageEdit);
|
|
|
|