private KeyStackNodes GetNodesControl(object xx) { var myContentPresenter = ItemContainerGenerator.ContainerFromItem(xx); KeyStackNodes myDataTemplate = (myContentPresenter as KeyStackNodes); return(myDataTemplate); }
protected override DependencyObject GetContainerForItemOverride() { var selectedContainer = new KeyStackNodes(); return(selectedContainer); }