Hi, Try to set
Background and
AutoGenerateColumns in code behind, like,
public partial class IGrid : DataGrid
{
public IGrid()
{
InitializeComponent();
this.AutoGenerateColumns = true;
this.Background = new SolidColorBrush(Colors.LightBlue);
}
}
Create UserControl Library and define your custom user controls there.