Esempio n. 1
0
        public void UpdateSize(int radius)
        {
            int size = radius * 2;

            _faceItem.SetSize(size, size);
            SetHeight(size + _layout.GetSpacing().Vertical + _nameLabel.GetHeight());

            int maxSize = (size > _nameLabel.GetWidth()) ? size : _nameLabel.GetWidth();

            SetWidth(maxSize);
        }