void CreateBoardDesignerPanel(DesignerBoard db) { DesignerCanvas dc = new DesignerCanvas(db); this.SetBinding(DesignerPage.BoardProperty, new Binding("Board") { Source = dc }); this.SetBinding(DesignerPage.SelectItemProperty, new Binding("SelectItem") { Source = dc }); DesignerGrid.Children.Add(dc); this.DataContext = Board; NameTB.SetBinding(TextBlock.TextProperty, new Binding("SelectItem.Name") { Source = dc }); }