Skip to content

[Feature] Add WPF MouseDragElementBehavior alternative #4490

Closed
@HavenDV

Description

@HavenDV

I want to port this Behavior from XamlBehaviorsWpf as a FrameworkElementExtension:

<mtuuc:HeaderedContentControl
    e:FrameworkElementExtensions.CanDragElement="True"
    e:FrameworkElementExtensions.ConstrainDragToParentBounds="True"
    />

The Attached Property option was chosen to not depend on the presence of the Behaviors package. Splitting the CommunityToolkit into smaller libraries is more conducive to using the extension separately if needed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions