Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControlBase.BeginInit() Method

In This Article

Starts the ChartControlBase‘s initialization. Initialization occurs at runtime.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public override void BeginInit()

#Remarks

You can call this method on a chart if you are adjusting it in ways that do not yet expose or connect the chart to any element tree. For instance, you might have created a new chart object, but have not yet attached it to any logical tree. Or, the logical tree where the chart is a child element within it might not be connected to a window or page of the application.

Note

  • Calling the BeginInit method prevents any validation from being performed until the ChartControlBase.EndInit method is called. This may lead to unexpected results in the case of any initialization errors.
  • The base implementation will throw an exception if BeginInit is called more than one time on the same element prior to ChartControlBase.EndInit being called.
See Also