Merge pull request #22 from jp2masa/fix-obsolete-api-usages
Fixed class handler obsolete API usages
This commit is contained in:
Коммит
2b5931d071
|
@ -124,7 +124,7 @@ namespace ICSharpCode.ILSpy
|
|||
}
|
||||
Languages.Initialize(exportProvider);
|
||||
|
||||
VisualLineLinkText.OpenUriEvent.AddClassHandler<Window>(win => Window_RequestNavigate);
|
||||
VisualLineLinkText.OpenUriEvent.AddClassHandler<Window>((win, e) => Window_RequestNavigate(e));
|
||||
|
||||
ILSpyTraceListener.Install();
|
||||
}
|
||||
|
|
|
@ -32,9 +32,9 @@ namespace ICSharpCode.TreeView
|
|||
|
||||
//VirtualizationModeProperty.OverrideDefaultValue<SharpTreeView>(ItemVirtualizationMode.Recycling);
|
||||
|
||||
DragDrop.DragEnterEvent.AddClassHandler<SharpTreeView>(x => x.OnDragEnter);
|
||||
DragDrop.DragOverEvent.AddClassHandler<SharpTreeView>(x => x.OnDragOver);
|
||||
DragDrop.DropEvent.AddClassHandler<SharpTreeView>(x => x.OnDrop);
|
||||
DragDrop.DragEnterEvent.AddClassHandler<SharpTreeView>((x, e) => x.OnDragEnter(e));
|
||||
DragDrop.DragOverEvent.AddClassHandler<SharpTreeView>((x, e) => x.OnDragOver(e));
|
||||
DragDrop.DropEvent.AddClassHandler<SharpTreeView>((x, e) => x.OnDrop(e));
|
||||
}
|
||||
|
||||
public SharpTreeView()
|
||||
|
|
|
@ -15,10 +15,10 @@ namespace ICSharpCode.TreeView
|
|||
{
|
||||
static SharpTreeViewItem()
|
||||
{
|
||||
DragDrop.DragEnterEvent.AddClassHandler<SharpTreeViewItem>(x => x.OnDragEnter);
|
||||
DragDrop.DragLeaveEvent.AddClassHandler<SharpTreeViewItem>(x => x.OnDragLeave);
|
||||
DragDrop.DragOverEvent.AddClassHandler<SharpTreeViewItem>(x => x.OnDragOver);
|
||||
DragDrop.DropEvent.AddClassHandler<SharpTreeViewItem>(x => x.OnDrop);
|
||||
DragDrop.DragEnterEvent.AddClassHandler<SharpTreeViewItem>((x, e) => x.OnDragEnter(e));
|
||||
DragDrop.DragLeaveEvent.AddClassHandler<SharpTreeViewItem>((x, e) => x.OnDragLeave(e));
|
||||
DragDrop.DragOverEvent.AddClassHandler<SharpTreeViewItem>((x, e) => x.OnDragOver(e));
|
||||
DragDrop.DropEvent.AddClassHandler<SharpTreeViewItem>((x, e) => x.OnDrop(e));
|
||||
}
|
||||
|
||||
public SharpTreeNode Node
|
||||
|
|
Загрузка…
Ссылка в новой задаче