Hi,
I define the datacontext to be a custom instance on desing time as explained my the Microsoft documentation here Design-Time Attributes in the Silverlight Designer | Microsoft Learn
<Grid d:DataContext="{d:DesignInstance Type=local:TestInDesign, IsDesignTimeCreatable=True}">
Then I have a ListView to test this
<ListView ItemsSource="{Binding Persons}" Grid.Row="0">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Spacing="10">
<TextBlock Text="{Binding Firstname}" />
<TextBlock Text="{Binding Lastname}" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Which is working well.
But when I try with the SfDataGrid, that is not working
<sfGrid:SfDataGrid Grid.Row="1"
ItemsSource="{Binding Persons}"
/>
Is the SfDataGrid compatible with rows generation on design time ?
Hi Chris,
Currently, we are checking the reported issue on our end, and we need two more business days to validate this. We will update
you with further details on October 11,
2022.
We appreciate your patience until
then.
Regards,
Dhanasekar M.
Hi Chris,
Still, we are working on this. We will update you with further details on October 13, 2022.
We appreciate your patience and understanding.
Regards,
Dhanasekar M.
Hi Chris,
We regret to let you know that currently, our UWP SfDataGrid does not contain the support for design time attributes. We are checking the feasibility to implement this support in our SfDataGrid. We need two more business days to check this. We will update you with further details on October 17, 2022.
We appreciate your patience and understanding.
Regards,
Dhanasekar M.
Hi Chris,
As we mentioned earlier our UWP SfDataGrid does not contain support for design time attributes. Could you please share your exact requirement? Based on that we will check the possibilities to implement your requirement as a feature in our SfDataGrid.
Regards,
Dhanasekar M.