private static void OnExpanderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TreeGridViewRowPresenter treeGridViewRowPresenter = (TreeGridViewRowPresenter)d;

            treeGridViewRowPresenter.childs.Remove(e.OldValue as UIElement);
            treeGridViewRowPresenter.childs.Add((UIElement)e.NewValue);
        }
Exemplo n.º 2
0
        private static void OnExpanderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            // Use a second UIElementCollection so base methods work as original
            TreeGridViewRowPresenter p = (TreeGridViewRowPresenter)d;

            p.childs.Remove(e.OldValue as UIElement);
            p.childs.Add((UIElement)e.NewValue);
        }