private static void StylePropertyAttached(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { if (instance?.treeNodeProvider.GetDomElement(dependencyObject)?.IsReady == true) { instance?.UpdateElement(dependencyObject); } }
private static void StylePropertyAttached(DependencyObject element, DependencyPropertyChangedEventArgs e) { if (instance is null) { return; } if (instance.treeNodeProvider.TryGetDomElement(element, out var domElement) != true) { return; // doesn't exist yet, no update necessary } if (domElement.IsReady == true) { instance.UpdateElement(element); } }
private static void ClassPropertyAttached(DependencyObject element, DependencyPropertyChangedEventArgs e) { if (instance is null) { return; } IDomElement <DependencyObject, DependencyProperty> domElementBase = null; if (instance.treeNodeProvider.TryGetDomElement(element, out domElementBase) != true) { return; } var domElement = (DomElementBase <DependencyObject, DependencyProperty>)domElementBase; domElement.ResetClassList(); if (domElement.IsReady == true) { instance.UpdateElement(element); } }
private static void ClassPropertyChanged(BindableObject element, object oldValue, object newValue) { if (instance is null) { return; } IDomElement <BindableObject, BindableProperty> domElementBase = null; if (instance.treeNodeProvider.TryGetDomElement(element, out domElementBase) != true) { return; } var domElement = (DomElementBase <BindableObject, BindableProperty>)domElementBase; domElement.ResetClassList(); if (domElement.IsReady == true) { instance.UpdateElement(element); } }
private static void StylePropertyAttached(DependencyObject d, DependencyPropertyChangedEventArgs e) { instance?.UpdateElement(d as FrameworkElement); }
private static void StylePropertyAttached(BindableObject d, object oldValue, object newValue) { instance?.UpdateElement(d as Element); }
private static void VisualTreeHelper_ChildAdded(object sender, EventArgs e) { //Debug.WriteLine("A"); instance?.UpdateElement(sender as BindableObject); }
private static void LoadedDetectionHelper_SubTreeAdded(object sender, EventArgs e) { instance.UpdateElement(sender as DependencyObject); }
private static void VisualTreeHelper_ChildAdded(object sender, EventArgs e) { instance.UpdateElement(sender as BindableObject); }