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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:33:32+00:00 2026-05-25T00:33:32+00:00

When adding new controls to a WPF Window (or other custom control), such as

  • 0

When adding new controls to a WPF Window (or other “custom” control), such as a label, the IDE prebuilds such as

<Label Content="Label" Grid.ColumnSpan="2" Grid.Row="6" Grid.RowSpan="2" Height="28" HorizontalAlignment="Left" Margin="54,11,0,0" Name="label1" VerticalAlignment="Top" />

I would like it to change the default order and formatting, such as…

<Label Name="label1" 
       Content="Label" 
       HorizontalAlignment="Left"
       VerticalAlignment="Top"
       Grid.Row="?" 
       Grid.Column ="?" 
       Height="28"/>

Especially as a newbie to WPF, I hate how things are just “thrown” together by the IDE. I like to have the name of controls up front, primary alignment issues, then the where and extras regarding the 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-25T00:33:32+00:00Added an answer on May 25, 2026 at 12:33 am

    I Don’t know the way of stablish a default order in the properties, but maybe Xaml Markup Styler can be of your interest. It’s a plugin for VS that reformat your XAML (contextual menu) and sort the atributes based on their importance (The importance in the opinion of the plugin developer.

    Anyway, I’m using this plugin right now and I recomend it.

    http://xamlstyler.codeplex.com/

    I know this is not exactly what you want, but maybe It’s a good partial solution.

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

Sidebar

Related Questions

I am designing a WPF user control which contains other user controls (imagine a
I have a TreeView control on a form. I am dynamically adding new TreeNodes
I need to update an existing SharePoint content type by adding a new field
I'm in the middle of adding new functionality to my winforms controls, and part
I'm trying to use a custom control in a WPF app, and I have
I´m adding controls dynamically onto my form, but I can't see those new controls.
I have a supposedly common problem to solve (done easily with other grid controls
When adding new properties to classes, I find myself typing the same things over
I have situation where I need to change the order of the columns/adding new
Clojure structs can be arbitrarily extended, adding new fields. Is it possible to extend

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.