public void AddVisual(Label label, UIElement element, ILabelPanelGridFacade grid)
        {
            int lastRow = grid.GetLastRow();

            if (lastRow < 0)
            {
                grid.AddRow();
                lastRow = grid.GetLastRow();
            }

            grid.AddColumnPair();

            int col = grid.GetLastColumn();

            grid.AddVisualToGrid(lastRow, col - 1, label);
            grid.AddVisualToGrid(lastRow, col, element);
        }
Пример #2
0
        public void AddVisual(Label label, UIElement element, ILabelPanelGridFacade grid)
        {
            int lastCol = grid.GetLastColumn();

            if (lastCol < 1)
                grid.AddColumnPair();

            grid.AddRow();

            int row = grid.GetLastRow();

            grid.AddVisualToGrid(row, 0, label);
            grid.AddVisualToGrid(row, 1, element);
        }