Пример #1
0
        public DependencyObject ContainerFromIndex(int index)
        {
            DependencyObject container;

            ContainerIndexMap.TryMap(index, out container);
            return(container);
        }
Пример #2
0
        public int IndexFromContainer(DependencyObject container)
        {
            int index;

            if (!ContainerIndexMap.TryMap(container, out index))
            {
                index = -1;
            }
            return(index);
        }