private void ShowAreaAndPerimeter() { if (_selectedShape != null) { SelectedShapeInfo.Text = $"Area:{_selectedShape.Area}, Perimeter:{_selectedShape.GetPerimeter()}"; } }