Skip to main content
A newer version of this page is available. .

ChartControlBase.BeginInit() Method

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

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeginInit() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also