<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <grid:SfDataGrid x:Name="sfDataGrid" Grid.Row="1" Margin="0,0,0,16" Padding="0,8,0,0" /> </Grid> |
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <grid:SfDataGrid x:Name="sfDataGrid" Grid.Row="1" Margin="0,0,0,16" Padding="0,8,0,0" ItemsSource="{Binding CarForms}"> <grid:SfDataGrid.Columns> <grid:GridTextColumn x:Uid="HomeSfColumnSubmitter" MappingName="submitterName" TextWrapping="Wrap" /> </grid:SfDataGrid.Columns> </grid:SfDataGrid> </Grid> |
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
………………
rootFrame.NavigationFailed += OnNavigationFailed;
// you'll need to add `using System.Reflection;`
List<Assembly> assembliesToInclude = new List<Assembly>();
//Now, add all the assemblies your app uses
assembliesToInclude.Add(typeof(SfDataGridRenderer).GetTypeInfo().Assembly);
// replaces Xamarin.Forms.Forms.Init(e);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
……………………
} |