I wanted just to right align one column in WPF and I found out that the syntax is not exactly syntetic... Is there a way to make it more syntetic?
Consider that this one colum, but I have 20 columns which share the same identical structure, changing only the displayed property.
<GridViewColumn Header="trial" Width="110">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock HorizontalAlignment="Right">
<TextBlock.Text>
<MultiBinding StringFormat="{}{0:N} {1}">
<Binding Path="Income"></Binding>
<Binding ElementName="UserControl" Path="DataContext.Pinco"></Binding>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>