public override void InitializeChildControlStructure() { base.InitializeChildControlStructure(); childDataGrid = new MonthCalendarDataGridProvider(this); childDataGrid.Initialize(); AddChildProvider(childDataGrid); // Don't ask me why, but Calendar needs to implement // Grid as well as the DataGrid child... SetBehavior(GridPatternIdentifiers.Pattern, new GridProviderBehavior(childDataGrid)); SetBehavior(TablePatternIdentifiers.Pattern, new TableProviderBehavior(childDataGrid)); SetBehavior(SelectionPatternIdentifiers.Pattern, new SelectionProviderBehavior(childDataGrid)); }
public override void InitializeChildControlStructure () { base.InitializeChildControlStructure (); childDataGrid = new MonthCalendarDataGridProvider (this); childDataGrid.Initialize (); AddChildProvider (childDataGrid); // Don't ask me why, but Calendar needs to implement // Grid as well as the DataGrid child... SetBehavior (GridPatternIdentifiers.Pattern, new GridProviderBehavior (childDataGrid)); SetBehavior (TablePatternIdentifiers.Pattern, new TableProviderBehavior (childDataGrid)); SetBehavior (SelectionPatternIdentifiers.Pattern, new SelectionProviderBehavior (childDataGrid)); }