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

The Archive Base Latest Questions

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

I am use to working with windows forms, but recently I had started to

  • 0

I am use to working with windows forms, but recently I had started to work on WPF.
But I got into trouble when trying to anchor elements, the only solution I found online was to use the Dock element.
(It hadn’t worked) On top of that I want some of my elements to behave like the anchor=right,left, button.
How can I do so?(for a tab control).

  • 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-26T03:06:04+00:00Added an answer on May 26, 2026 at 3:06 am

    There is no “anchoring” in WPF like there was in WinForms. WPF has many options to control your layout and uses a combination of layout containers: DockPanel, Grid, StackPanel, etc. And layout attributes like HorizontalAlignment, VerticalAlignment, etc.

    I would suggest that you read up on things on the layout containers, DockPanel, Grid, and StackPanel being the most popular (at least in my experience).

    On the upside, I’ve personally found the layout system in WPF to much better and powerful than WinForms, once you get the hang of it.

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

Sidebar

Related Questions

I am working on a wpf application. Here I need to use System.Windows.Forms.FolderBrowserDialog in
I am working on a Windows Forms application in C#/.Net. I want to use
I am recently working on windows forms with visual C# and I have a
I am working on a windows form application. How do i use the find
I am working on a small video chat software on windows which use RTP
I am working on a Windows Forms application in VS 2008, and I want
I'm trying to learn how to use managed/unmanaged code interop, but I've hit a
I have a windows forms user control in my project. It has been working
I've just started working with Visual Studio and C#, and am trying to solve
I'm used to work with StructureMap with Web Apps... but now, I'm working on

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.