Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:20:51+00:00 2026-06-09T14:20:51+00:00

I have a WPF Application which allows user to enter production Data. For that

  • 0

I have a WPF Application which allows user to enter production Data.

For that reason i created a Usercontrol which uses an WPF Toolkit Accordion. In Code behind i create 15 Accordion Items. Each Item has an Stackpanel and 5-10 Textboxes in it.

When adding 12 of these controls to the main Content Control it takes about 10 seconds.

What can be the cause of this behaviour?

    public XXXMeasurementControl(Measurement meas)
    {

        InitializeComponent();


        if (meas.ID == -2)
        {
            LineNameTextBlock.Text = "Total";
        }
        else
        {
            LineNameTextBlock.Text = meas.MeasureDate.ToString("HH:mm") + " - " + meas.MeasureDate.AddHours(1).ToString("HH:mm");
        }



        this.cells = meas.MainCells;
        this.meas = meas;


        Binding b = new Binding();
        Remark.DataContext = Meas;
        b.Mode = BindingMode.TwoWay;
        b.Path = new PropertyPath("Remark");
        BindingOperations.SetBinding(Remark, TextBox.TextProperty, b);

        //Create Cells Start

        foreach (Cell c in cells)
        {
            //Creating Textboxes & Bindings for Stations from Maincells

            if (c.Name != "OQC")
            {

                //Setting Qualified Overall (=Qualified from Cell Appearance Check)

                Common.BindTextBlock(QualifiedOverallTextBlock, c, "Qualified");

                if (c.Name.Contains("Appearance Check"))
                    Common.BindTextBlock(QualifiedOverallTextBlock, c, "Qualified");

                //Setting Scrap Rate (=Waste from Cell Acoustic Test)

                if (c.Name.Contains("Acoustic Test"))
                      Common.BindTextBlock(ScrapRateTextBlock, c, "WasteRate");

                AccordionItem aci = new AccordionItem();

                StackPanel sp = new StackPanel();
                StackPanel groupData = new StackPanel();
                StackPanel all = new StackPanel();
                all.Children.Add(sp);
                all.Children.Add(groupData);

                if (c.Stations != null)

                    //All Single Cell Line Controls

                    if (meas.ID != -2)
                    {
                        for (int i = 0; i < c.Stations.Count; i++)
                        {
                            NumberTextbox t = Common.CreateNumberTextbox(c.Stations[i], "Value", BindingMode.TwoWay, false, null, 80, 22);

                            t.LostFocus += new RoutedEventHandler(t_LostFocus);

                            c.Stations[i].PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(LineControl_PropertyChanged);

                            //Handling if Qualified Field is Editable

                            if (c.Stations[i].Name.Contains("Qualified"))
                            {
                                t.Background = new SolidColorBrush(Colors.BlanchedAlmond);
                                groupData.Children.Add(t);

                            }
                            else
                            {
                                sp.Children.Add(t);
                            }

                        }
                    }


                groupData.Children.Add(Common.CreateNumberTextbox(c, "RejectQty", BindingMode.OneWay, true,null, 80, 22));
                groupData.Children.Add(Common.CreateNumberTextbox(c, "PassRate", BindingMode.OneWay, true, new SolidColorBrush(Colors.BlanchedAlmond), 80, 22));
                groupData.Children.Add(Common.CreateNumberTextbox(c, "RejectRate", BindingMode.OneWay, true, new SolidColorBrush(Colors.BlanchedAlmond), 80, 22));

                aci.Header = "";
                aci.Content = all;
                MainCellsAccordion.Items.Add(aci);

            }
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:20:53+00:00Added an answer on June 9, 2026 at 2:20 pm

    I too experience terrible performance with the Accordion control in the WPF Toolkit. I have an Accordion control within a tab, and whenever I switch to that tab it takes a solid 2-3 seconds to initialize the contents. I do not have this problem when the Accordion Control is not being used.

    I think the Accordion is your culprit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a wpf application into which I have added a user control
I have a C# WPF application which uses Excel interop libraries to generate and
I have a WPF application that allows users to create questions of all different
I have a very simple WPF application in which I am using data binding
We're designing a WPF / MVVM application that allows the user to search and
I have a usercontrol in my wpf application which is causing a stackoverflowexception to
I have a data grid in my WPF application window, which I have to
I have a WPF application which connects to a remote database over internet and
I have an XBAP WPF application which displays various pages inside of a Frame.
I have a DataGrid in a WPF application which has for its ItemsSource a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.