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 4239632
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:03:38+00:00 2026-05-21T03:03:38+00:00

I am creating a custom control in WPF 4.0 that is going to look

  • 0

I am creating a custom control in WPF 4.0 that is going to look something like the image below. It basically consists of “swim lanes”. Each ItemsControl has elements that can be dragged and dropped, with a visual render of the item, within the same row on every element except for the row header. There are a fixed number of columns and a variable number of rows.

enter image description here

I was thinking of two different approaches to this problem:

  1. Use a DataGrid and heavily modify it so that it will support this behaviour.

  2. Create a grid with a dynamic number of rows and implement each item as group of 5 controls (one for each column).

Considerations:
Using MVVM, the whole thing should be able to bind to a list.

What would be the most reasonable approach in this situation?

Please comment if anything is unclear!

  • 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-05-21T03:03:39+00:00Added an answer on May 21, 2026 at 3:03 am

    So it sounds like you have several “controls” that you should build that will make this larger, composite control easier to manage.

    The bulk of the complicated behavior you have is enforcing drag and drop across items controls within a given row (really the complicated part is restricting drops on items controls in other rows)

    So first I would build a ItemsControlGroup control. Something similar to say a radio group where each control is part of a similar group. You might be able to do this with simply an attached property for the group name. That will give you a way to figure out if the target is a valid drop location for the given item being dragged.

    Building all of that should be distinct from building this “swim lane” layout you are after.

    Once you have the items control drag and drop working then you can build the layout several different ways.

    A DataGrid actually might not be too hard to work with at this point, like Zebi pointed out.

    You could also get away with a set of nested stack panels or some sort of grid layout. Layout will be the easy part.

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

Sidebar

Related Questions

I am creating a custom WPF control that let's say for simplicity sake has
I would like to create a set of custom controls that are basically image
I am creating a WPF custom control, a Button with an Image and Text
In WPF, we are creating custom controls that inherit from button with completely drawn-from-scratch
We're creating a WPF custom control targeted at .NET 3.5. It is very compelling
I'm creating a custom control in wxWidgets that displays a menu as part of
I am creating a custom WPF control class which inherits from ComboBox. As I
Im currently creating a custom control (based on the WPF DataGrid). What i would
I am creating a custom control in WPF, it is the highly unoriginal example
I am creating a custom control derived from the one of the Standard WPF

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.