I have a Page that can change its content at runtime and was calling VisualTreeHelper.DisconnectChildrenRecursive(Content) but after adding a chart that method throws an ArgumentException.
However it seems I can still reload the Page content using Application.LoadComponent so maybe that disconnect thing is superfluous anyway.
Still somethings worth looking into I guess.
I have a
Pagethat can change its content at runtime and was callingVisualTreeHelper.DisconnectChildrenRecursive(Content)but after adding a chart that method throws anArgumentException.However it seems I can still reload the
Pagecontent usingApplication.LoadComponentso maybe that disconnect thing is superfluous anyway.Still somethings worth looking into I guess.