Skip to main content

ChartControlBase.BeginInit() Method

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

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.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