I have 3 string arrays like this:
public string[] RowHeaders
{
get { return new[] {"RowHeader1", "RowHeader2", "RowHeader3", "RowHeader4"};
}
public string[] ColumnHeaders
{
get { return new[] {"ColumnHeader1", "ColumnHeader2", "ColumnHeader3"}; }
}
public string[][] Values
{
get { return new[]
{
new []{"Value11", "Value12", "Value13"},
new []{"Value21", "Value22", "Value23"},
new []{"Value31", "Value32", "Value33"},
new []{"Value41", "Value42", "Value43"},
}; }
}
Array sizes are unknown until run-time (array values in code snippet are for showing the concept). I want to create a WPF grid from them like

which binds to these 3 arrays and designed entirely in XAML (if possible). How?

Gridand put there 3DependencyPropertiesColumnHearder, RowHeader, ItemsSource and generate it automatically using code