Commit 32c09b3f authored by 540597360@qq.com's avatar 540597360@qq.com

VisualElement的VisualTree错误(不完整)

parent 4f31cfaf
......@@ -95,6 +95,7 @@ namespace LiveCharts.Wpf
if (UIElement.Parent == null)
{
chart.View.AddToDrawMargin(UIElement);
chart.View.AddToDrawMargin(this);
Panel.SetZIndex(UIElement, 1000);
}
......@@ -175,6 +176,7 @@ namespace LiveCharts.Wpf
public void Remove(ChartCore chart)
{
chart.View.RemoveFromDrawMargin(UIElement);
chart.View.RemoveFromDrawMargin(this);
}
private static void PropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment