I am building a WPF UI using Powershell and XAML. The particular feature I am having problems with is setting the style on the columns. I am able to set the style within the XAML, but there are 9 columns (3 columns each in 3 data grids) so I feel it would be neater to set the properties in the code rather than repeat the same block 9 times.I am building a WPF UI using Powershell and XAM