개정판 eb2b9248
Shape회전시 마우스 포인트 사라지지 않도록 설정
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
1338 | 1338 |
|
1339 | 1339 |
private void DragThumb_DragDelta(object sender, DragDeltaEventArgs e) |
1340 | 1340 |
{ |
1341 |
DragThumb.Cursor = Cursors.SizeAll; |
|
1341 | 1342 |
Thumb thumb = sender as Thumb; |
1342 | 1343 |
MoveAdorner(e); |
1343 | 1344 |
} |
1345 |
|
|
1344 | 1346 |
public void MoveAdorner(DragDeltaEventArgs e) |
1345 | 1347 |
{ |
1346 | 1348 |
Point dragDelta = new Point(e.HorizontalChange, e.VerticalChange); |
... | ... | |
1492 | 1494 |
} |
1493 | 1495 |
})); |
1494 | 1496 |
} |
1497 |
|
|
1495 | 1498 |
public void DynamicThumbUpdate(DragDeltaEventArgs e, AdornerMember item) |
1496 | 1499 |
{ |
1497 | 1500 |
var AllControl = item.DrawingData as IPath; |
... | ... | |
1521 | 1524 |
} |
1522 | 1525 |
} |
1523 | 1526 |
} |
1527 |
|
|
1524 | 1528 |
public void DynamicThumbUpdate(AdornerMember item) |
1525 | 1529 |
{ |
1526 | 1530 |
var AllControl = item.DrawingData as IPath; |
... | ... | |
2118 | 2122 |
/// <param name="e"></param> |
2119 | 2123 |
public void rotate_DragDelta(object sender, DragDeltaEventArgs e) |
2120 | 2124 |
{ |
2125 |
//DragThumb.Cursor = Cursors.SizeAll; |
|
2126 |
//System.Windows.Resources.StreamResourceInfo info = Application.GetResourceStream(new Uri("/KCOM;component/Resources/Images/AdornerImage/sync.cur", UriKind.Relative)); |
|
2127 |
//rotateTop.Cursor = new System.Windows.Input.Cursor(info.Stream); |
|
2128 |
|
|
2129 |
//rotateTop.Cursor = new System.Windows.Input.Cursor("../sync.cur"); |
|
2130 |
|
|
2121 | 2131 |
//if(e.VerticalChange > 10) |
2122 | 2132 |
//{ |
2123 | 2133 |
// System.Diagnostics.Debug.WriteLine("Width" + ((e.Source as Thumb).Parent as Grid).Width); |
... | ... | |
2514 | 2524 |
})); |
2515 | 2525 |
BorderUpdate(); |
2516 | 2526 |
} |
2527 |
|
|
2517 | 2528 |
private void rotate_DragStarted(object sender, DragStartedEventArgs e) |
2518 | 2529 |
{ |
2530 |
//System.Windows.Forms.Cursor.Position = new System.Drawing.Point(System.Windows.Forms.Cursor.Position.X - 150, System.Windows.Forms.Cursor.Position.Y - 150); |
|
2531 |
|
|
2532 |
rotateTop.Cursor = Cursors.SizeAll; |
|
2533 |
|
|
2519 | 2534 |
//CustomCursor.SetCursorTemplate(rotateTop, this.Resources["AnimatedCursor"] as DataTemplate); |
2520 |
rotateTop.Cursor = Cursors.None; |
|
2535 |
//rotateTop.Cursor = Cursors.None;
|
|
2521 | 2536 |
|
2522 | 2537 |
//if (ViewerDataModel.Instance.UndoDataList.LastOrDefault().PointSet != null) |
2523 | 2538 |
//{ |
... | ... | |
2556 | 2571 |
|
2557 | 2572 |
private void drag_DragStarted(object sender, DragStartedEventArgs e) |
2558 | 2573 |
{ |
2559 |
DragThumb.Cursor = Cursors.None; |
|
2574 |
//CustomCursor.SetCursorTemplate(DragThumb, this.Resources["MoveCursor"] as DataTemplate); |
|
2575 |
//DragThumb.Cursor = Cursors.None; |
|
2576 |
//DragThumb.Cursor = Cursors.SizeAll; |
|
2560 | 2577 |
|
2561 | 2578 |
if (ViewerDataModel.Instance.UndoDataList == null) |
2562 | 2579 |
{ |
... | ... | |
2627 | 2644 |
|
2628 | 2645 |
private void drag_DragCompleted(object sender, DragCompletedEventArgs e) |
2629 | 2646 |
{ |
2647 |
//CustomCursor.SetCursorTemplate(DragThumb, null); |
|
2630 | 2648 |
DragThumb.Cursor = Cursors.Arrow; |
2649 |
|
|
2631 | 2650 |
Undo_Event(); |
2632 | 2651 |
} |
2633 | 2652 |
|
... | ... | |
2644 | 2663 |
} |
2645 | 2664 |
|
2646 | 2665 |
} |
2666 |
|
|
2647 | 2667 |
public void TextControlChanger() |
2648 | 2668 |
{ |
2649 | 2669 |
if ((MemberSet.First() as AdornerMember).DrawingData.GetType().Name == "TextControl") |
... | ... | |
2681 | 2701 |
}; |
2682 | 2702 |
} |
2683 | 2703 |
} |
2704 |
|
|
2684 | 2705 |
private void RectThumb_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) //더블클릭 |
2685 | 2706 |
{ |
2686 | 2707 |
if (e.ClickCount == 2 && MemberSet.Count == 1) |
내보내기 Unified diff