
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
A lightweight, cross-platform drag-and-drop interaction service for AvaloniaUI, designed for flexibility and extensibility.
Supports multiple independent or nested instances, complex drop precedence, and custom drag/drop logic via callbacks.
✅ Compatible with Avalonia 11+ and .NET 8.0+
AllowDrag
, AllowDrop
)PointerEventArgs
and dragged control setIDisposable
pattern<StackPanel local:DraggingServiceAttached.IsRootOfDraggingInstance="True">
<Button Content="Drag me!"
local:DraggingServiceAttached.AllowDrag="{Binding OnDragCallback}" />
<TextBlock Content="Drop on me!"
local:DraggingServiceAttached.AllowDrag="{Binding OnDropCallback}" />
void OnDragCallback(DraggingServiceCallbackArgs args) {
// Access dragged controls and pointer info
var controls = args.DraggedControls;
var pointer = args.PointerEvent;
// Logic here
}
void OnDropCallback(DraggingServiceCallbackArgs args) {
// Access dragged controls and pointer info
var controls = args.DraggedControls;
var pointer = args.PointerEvent;
// Logic here
}
Data can be read via the data-context of the dragged controls/drop targets for a better MVVM approach
IsRootOfDraggingInstance
property to false
on the root control: control.SetValue(IsRootOfDraggingInstance, false)
or
DraggingServiceAttached.SetIsRootOfDraggingInstance(control, false);
Background
if not present and enables the IsHitTestVisible
property for every control used in the service.IsRootOfDraggingInstance
Attached Property to dispose the instance.FAQs
Minimal Drag and Drop Service UI library
We found that dragndrop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.