public MainWindowSettingsModel() { // Initialize default layout models: Blank, Focus, Columns, Rows, Grid, and PriorityGrid var blankModel = new CanvasLayoutModel(Properties.Resources.Template_Layout_Blank, LayoutType.Blank) { TemplateZoneCount = 0, SensitivityRadius = 0, }; DefaultModels.Insert((int)LayoutType.Blank, blankModel); var focusModel = new CanvasLayoutModel(Properties.Resources.Template_Layout_Focus, LayoutType.Focus); focusModel.InitTemplateZones(); DefaultModels.Insert((int)LayoutType.Focus, focusModel); var columnsModel = new GridLayoutModel(Properties.Resources.Template_Layout_Columns, LayoutType.Columns) { Rows = 1, RowPercents = new List <int>(1) { GridLayoutModel.GridMultiplier }, }; columnsModel.InitTemplateZones(); DefaultModels.Insert((int)LayoutType.Columns, columnsModel); var rowsModel = new GridLayoutModel(Properties.Resources.Template_Layout_Rows, LayoutType.Rows) { Columns = 1, ColumnPercents = new List <int>(1) { GridLayoutModel.GridMultiplier }, }; rowsModel.InitTemplateZones(); DefaultModels.Insert((int)LayoutType.Rows, rowsModel); var gridModel = new GridLayoutModel(Properties.Resources.Template_Layout_Grid, LayoutType.Grid); gridModel.InitTemplateZones(); DefaultModels.Insert((int)LayoutType.Grid, gridModel); var priorityGridModel = new GridLayoutModel(Properties.Resources.Template_Layout_Priority_Grid, LayoutType.PriorityGrid); priorityGridModel.InitTemplateZones(); DefaultModels.Insert((int)LayoutType.PriorityGrid, priorityGridModel); }