Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:39:29+00:00 2026-06-15T18:39:29+00:00

In a Metro-style application, I have defined a custom control and placed several instances

  • 0

In a Metro-style application, I have defined a custom control and placed several instances of them inside a Grid. What would be the best way to enable the user to drag a control from one cell of the grid and drop it in another?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:39:30+00:00Added an answer on June 15, 2026 at 6:39 pm

    That depends on what you want to achieve. From my standpoint – the best way would be to implement a behavior so that you can reuse it in different places in your UI and possibly share it with others too. From your point of view – the best way might be the easiest way where you would do a custom implementation that would be tied to the Page/UserControl that hosts your Grid.

    If you are asking about how to do the drag & drop part – you can set the ManipulationMode on your custom control to TranslateX,TranslateY and handle ManipulationStarted events where you would move your control to a full-screen or grid-sized popup and move it in the ManipulationDelta events by updating either the Margin, Canvas or RenderTransform properties, then finally on ManipulationCompleted – drop it in the cell that matches your criteria.

    You would use the Popup to make sure that your custom control is dragged over anything else.

    To calculate positions between the Grid and the Popup you would use something like grid.TransformToVisual(popup).TranformPoint().

    You could also do something to highlight candidate target cells in the grid where the control would drop when released.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created metro style Grid Application which preview data that i get it
I'm developing win8(metro style) application with Html5-js-jquery. I have this code segment; GetBoutiqueDetail: function
I have the following situation: I'm currently attempting to write a Metro-style application, with
If you make deployment of your non-metro (old style) application you have basically two
I want to create a full screen GridView control for a Metro Style application
I've been trying to get something working in a windows 8 metro style application,
I am trying to use Windows.Media.Capture.CameraCaptureUI() of Metro Style app in WPF application in
Yesterday I have started developing my first Metro style App using JavaScript. I've used
Working on a Windows 8 (metro style) application, and want to reference a service
I'm trying to create some primitive imitation of the Windows Metro style application. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.