编写拖动效果装饰器与状态回显装饰器
This commit is contained in:
@@ -46,7 +46,7 @@ namespace RazorEngineTest
|
||||
/// </summary>
|
||||
public class MyControl : Control
|
||||
{
|
||||
private PositionAdorner? _currentAdorner = null;
|
||||
private DropPlacementAdorner? _currentAdorner = null;
|
||||
private AdornerLayer? _adornerLayer = null;
|
||||
static MyControl()
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace RazorEngineTest
|
||||
|
||||
if (_adornerLayer != null)
|
||||
{
|
||||
_currentAdorner = new PositionAdorner(this, position);
|
||||
_currentAdorner = new DropPlacementAdorner(this, position);
|
||||
_adornerLayer.Add(_currentAdorner);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user