public CircleTheButtons() { Title = "Circle the Buttons"; RadialPanel pnl = new RadialPanel(); pnl.Orientation = RadialPanelOrientation.ByWidth; pnl.ShowPieLines = true; Content = pnl; Random rand = new Random(); for (int i = 0; i < 10; i++) { Button btn = new Button(); btn.Content = "Button Number " + (i+1); btn.FontSize += rand.Next(10); pnl.Children.Add(btn); } }
public CircleTheButtons() { Title = "Circle the Buttons"; RadialPanel pnl = new RadialPanel(); pnl.Orientation = RadialPanelOrientation.ByWidth; pnl.ShowPieLines = true; Content = pnl; Random rand = new Random(); for (int i = 0; i < 10; i++) { Button btn = new Button(); btn.Content = "Button Number " + (i + 1); btn.FontSize += rand.Next(10); pnl.Children.Add(btn); } }