编写拖动效果装饰器与状态回显装饰器

This commit is contained in:
于智纯
2025-09-07 20:41:19 +08:00
parent f6b97e01b8
commit 7212a7dea7
4 changed files with 142 additions and 8 deletions

View File

@@ -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);
}
}