public DependencyObject ContainerFromIndex(int index) { DependencyObject container; ContainerIndexMap.TryMap(index, out container); return(container); }
public int IndexFromContainer(DependencyObject container) { int index; if (!ContainerIndexMap.TryMap(container, out index)) { index = -1; } return(index); }