Gridview - Child element

2 posts, 0 answers
  1. Nicklas
    Nicklas avatar
    21 posts
    Member since:
    Feb 2016

    Posted 11 Jun 2019 Link to this post

    Hello, I have a gridview as shown in the picture, I'm trying to iterate throw all group header rows, and access the progress bar in order to set a image for the progress bar. 

     

    Is this possiple? 

     

    Thanks in advance

  2. Nicklas
    Nicklas avatar
    21 posts
    Member since:
    Feb 2016

    Posted 11 Jun 2019 Link to this post

    Note: This is how they are created. I'm trying to iterate throw them outside the below override function

     

      protected override void CreateChildElements()
                {
                    base.CreateChildElements();
                    stack = new StackLayoutElement();
                    stack.Orientation = Orientation.Horizontal;
                    stack.StretchHorizontally = true;

                    checkBoxElement.StretchHorizontally = false;
                    checkBoxElement.CheckStateChanged += checkBoxElement_CheckStateChanged;
                    textElement.TextAlignment = ContentAlignment.MiddleLeft;
                    this.Children.Add(stack);
                    stack.Children.Add(checkBoxElement);
                    stack.Children.Add(textElement);


                    ///////////
                    pro.StretchHorizontally = false;
                    pro.AutoSize = false;
                    pro.Size = new Size(250, 45);//48
                    pro.Alignment = ContentAlignment.MiddleRight;
                    pro.Margin = new Padding(0, 0, 0, 5);

                    pro.HighlightColor = Color.FromArgb(191, 219, 255);
                    stack.Children.Add(pro);                
                }

Back to Top