public SpreadsheetComponentControl(SpreadsheetComponentData data, IComponentValueStore valueStore)
        {
            InitializeComponent();
            this.Loaded          += SpreadsheetComponentControl_Loaded;
            this.Unloaded        += SpreadsheetComponentControl_Unloaded;
            this.data             = data;
            this.valueStore       = valueStore;
            this.grid.ItemsSource = data.cells;
            SetupColumns();

            connector = new ControlConnector();
            connector.HorizontalAlignment = HorizontalAlignment.Center;
            connector.VerticalAlignment   = VerticalAlignment.Center;
            this.AddVisualChild(connector);
            connector.InitConnectable(this);
        }
 public SpreadsheetDataSource(SpreadsheetComponentData data)
 {
     this.data = data;
 }
 string GetRowName(int row)
 {
     return(SpreadsheetComponentData.GetDefaultRowName(row));
 }
 string GetColumnName(int col)
 {
     return(SpreadsheetComponentData.GetDefaultColumnName(col));
 }