I need to find string format from XAML binding in code. Lets say I have data grid where one of the columns is:
<sdk:DataGridTextColumn Header="DD" Binding="{Binding Field4, StringFormat=d}" />
I can access the field name like this:
dg.Columns
.OfType<DataGridBoundColumn>()
.Select(i => (i as DataGridBoundColumn).Binding.Path.Path)
Is there a way to access string format "d" ?