コード例 #1
0
        private KeyStackNodes GetNodesControl(object xx)
        {
            var           myContentPresenter = ItemContainerGenerator.ContainerFromItem(xx);
            KeyStackNodes myDataTemplate     = (myContentPresenter as KeyStackNodes);

            return(myDataTemplate);
        }
コード例 #2
0
        protected override DependencyObject GetContainerForItemOverride()
        {
            var selectedContainer = new KeyStackNodes();

            return(selectedContainer);
        }