Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

[Feature] Add WPF MouseDragElementBehavior alternative #4490

Closed

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

  1. deleted a comment from on Jun 8, 2022
  2. deleted a comment from on Jun 8, 2022
  3. deleted a comment from on Jun 8, 2022
  4. deleted a comment from on Jun 8, 2022
  5. deleted a comment from on Jun 8, 2022
  6. deleted a comment from on Jun 8, 2022
  7. deleted a comment from on Jun 8, 2022
  8. locked and limited conversation to collaborators on Aug 1, 2022
  9. converted this issue into a discussion #4697 on Aug 1, 2022
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