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

  • Home
  • SEARCH
  • 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 3482396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:33:15+00:00 2026-05-18T10:33:15+00:00

I will need to dynamic generate a square matrix of boxes(e.g. 2×2, 3×3 etc.),

  • 0

I will need to dynamic generate a square matrix of “boxes”(e.g. 2×2, 3×3 etc.), each containing a textbox and a button. These boxes and text will also resize according the the size of the window. Shall I approach this problem using stackPanel, datagrid or dockpanel and what are their advantages or disadvantages? Appreciate for any suggestion.

Developed by WPF, VS2010.

  • 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-18T10:33:16+00:00Added an answer on May 18, 2026 at 10:33 am

    I would approach it with a Grid control. Columns and rows inside the grid will auto size based on the size of the grid if you tell it too. Also, the Grid automatically fills the area they’re put in to, which sounds like what you’re after.

    Stack panels aren’t very flexible. The basically just put one item next to another with no auto sizing.

    The dock panel is good for if you have content that should be fixed to on side and some other content for the centre.

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

Sidebar

Related Questions

I'm in need of a dynamic form that will be built from a list
i will need to generate a report based on user input for every food
In many ViewModels I will need a collection from another ViewModel. Basically each VIewModel
I want to generate a sitemap for my dynamic content. Do I need to
I have a Flex application and need to generate a menu programatically, it will
I will need a Jquery script for a table sliding effect just like image
I have a phonegap application which will need to take a zip archive of
I am building a web application that will need to allow users to save
I'm building a service which will need to access a certain Big Corp API
Using Your Ruby Gem(s) You will need to add /home/username/ruby/gems to the include path.

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.