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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -