I'm having trouble binding the Column Header Text to a value of the the view model.
<Page
x:Class="JACB.Views.Backtest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:JACB.Views"
xmlns:VM="using:JACB.ViewModels"
xmlns:sfgrid="using:Syncfusion.UI.Xaml.Grid"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{StaticResource Black}">
<Page.Resources>
<VM:VMBacktest x:Key="viewModel"/>
</Page.Resources>
<ScrollViewer
x:Name="BalancesXAML"
Padding="5,0,0,0"
IsTabStop="False"
UseSystemFocusVisuals="False"
VerticalScrollBarVisibility="Auto"
VerticalScrollMode="Auto">
<!--Other stuff-->
<sfgrid:SfDataGrid x:Name="ResultGrid" ShowRowHeader="True" Visibility="{Binding ComputedPoints.Count, Converter={StaticResource ItemsSourceCountVisibilityConverter}}" SelectionMode="None" MaxHeight="400" AllowSorting="False" Margin="0,10,0,25" Grid.Column="1" Grid.Row="3" ItemsSource="{Binding ComputedPoints}" IsReadOnly="True" AutoGenerateColumns="False">
<sfgrid:SfDataGrid.Resources>
<Style TargetType="sfgrid:GridRowHeaderCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="sfgrid:GridRowHeaderCell">
<Border x:Name="PART_RowHeaderCellBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="0,0,1,0">
<Grid>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="{Binding RowIndex,RelativeSource={RelativeSource TemplatedParent}}"
FontSize="16"
Foreground="{StaticResource DataForeground}"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</sfgrid:SfDataGrid.Resources>
<sfgrid:SfDataGrid.Columns>
<sfgrid:GridDateTimeColumn
ColumnSizer="AutoLastColumnFill"
HeaderText="Date"
TextAlignment="Center"
MappingName="Date"/>
<sfgrid:GridTextColumn
ColumnSizer="Auto"
HeaderText="Type"
TextAlignment="Center"
MappingName="Type"/>
<sfgrid:GridTemplateColumn
ColumnSizer="Star"
HeaderText="{Binding Path=Metadata.BaseAsset, Source={StaticResource viewModel}}"
TextAlignment="Center"
MappingName="BaseBalance">
<sfgrid:GridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding BaseBalance, ConverterParameter=6, Converter={StaticResource RoundDecimalsConverter}}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{StaticResource DataForeground}"/>
</DataTemplate>
</sfgrid:GridTemplateColumn.CellTemplate>
</sfgrid:GridTemplateColumn>
<sfgrid:GridTemplateColumn
ColumnSizer="Star"
HeaderText="{Binding Path=Metadata.QuoteAsset, Source={StaticResource viewModel}}"
TextAlignment="Center"
MappingName="QuoteBalance">
<sfgrid:GridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding QuoteBalance, ConverterParameter=6, Converter={StaticResource RoundDecimalsConverter}}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{StaticResource DataForeground}"/>
</DataTemplate>
</sfgrid:GridTemplateColumn.CellTemplate>
</sfgrid:GridTemplateColumn>
<sfgrid:GridTemplateColumn
ColumnSizer="AutoLastColumnFill"
HeaderText="Change"
TextAlignment="Center"
MappingName="Change">
<sfgrid:GridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{Binding Change, Converter={StaticResource PositiveNegativeFormatConverter}}">
<Run Text="{Binding Change}"/>
<Run Text=" %"/>
</TextBlock>
</DataTemplate>
</sfgrid:GridTemplateColumn.CellTemplate>
</sfgrid:GridTemplateColumn>
</sfgrid:SfDataGrid.Columns>
</sfgrid:SfDataGrid>
</Grid>
</ScrollViewer>
</Page>