WPF Grid - align it's children automatically -


Is there a property like vertical content alignment to align the grid children or do I have to do it manually? If most of the grid children are of the same type then you can use styles, for example, put it on it. Beginning of the grid will align all text boxes

  & lt; Grid & gt; & Lt; Grid.Resources & gt; & Lt; Style TargetType = "Textbox" & gt; & Lt; Setter property = "horizontal alignment" value = "true" /> & Lt; / Style & gt; & Lt; /Grid.Resources> . . .  

If you have only some types of control inside the grid, then it is very useful.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -