Inheritance: System.Windows.Controls.Panel
Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }