상속: System.Windows.Controls.Panel
예제 #1
0
        public DuplicateUniformGrid()
        {
            Title = "Duplicate Uniform Grid";

            UniformGridAlmost unigrid = new UniformGridAlmost();
            unigrid.Columns = 5;
            Content = unigrid;

            Random rand = new Random();
            for (int index = 0; index < 48; index++)
            {
                Button btn = new Button();
                btn.Name = "Button" + index;
                btn.Content = btn.Name;
                btn.FontSize += rand.Next(10);
                unigrid.Children.Add(btn);
            }
            AddHandler(Button.ClickEvent, new RoutedEventHandler(ButtonOnClick));
        }
예제 #2
0
        public DuplicateUniformGrid()
        {
            Title = "Duplicate Uniform Grid";

            UniformGridAlmost unigrid = new UniformGridAlmost();

            unigrid.Columns = 5;
            Content         = unigrid;

            Random rand = new Random();

            for (int index = 0; index < 48; index++)
            {
                Button btn = new Button();
                btn.Name      = "Button" + index;
                btn.Content   = btn.Name;
                btn.FontSize += rand.Next(10);
                unigrid.Children.Add(btn);
            }
            AddHandler(Button.ClickEvent, new RoutedEventHandler(ButtonOnClick));
        }