//add a new flower public void AddFlower() { flower = new Flower { LocationX = random.Next(1, (int)CanvasWidth - 50), LocationY = random.Next(1, (int)CanvasHeight - 50) }; //Add to Canvas MyCanvas.Children.Add(flower); //location flower.UpdatePosition(); }