Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and Drop Behavior #67

Closed
FeltMe opened this issue May 13, 2021 · 0 comments
Closed

Drag and Drop Behavior #67

FeltMe opened this issue May 13, 2021 · 0 comments

Comments

@FeltMe
Copy link

FeltMe commented May 13, 2021

Hello
I have Grid on Window, and i try to add Behavior for DragOver and Drop event's, witch will call my custom ReactiveCommand in MyViewModel.

<Grid DragDrop.AllowDrop="True">
			<i:Interaction.Behaviors>
				<ia:EventTriggerBehavior EventName="Drop">
					<ia:InvokeCommandAction Command="{Binding DropCommand}" />
				</ia:EventTriggerBehavior>
			</i:Interaction.Behaviors>
</Grid>

But i get a System.Xaml.XamlException: Cannot find an event named Drop on type Grid.
So i try to find else way to solve it, i found some DragDrop parameter and try to add command here DragDrop.Drop="DropCommand", and I see the following exception System.Xaml.XamlException: "Unable to resolve suitable regular or attached property Drop on type Avalonia.Input:Avalonia.Input.DragDrop.

Is it's a bug? Couse a Grid definitely has this event's.

And if i am do something wrong, please tell me how i can add a ReactiveCommand to Drop and DragOver events, which will called after event was invoked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants