Tag: itemspanel

如何在代码中获取ListBox ItemsPanel

我有一个带有ItemsPanel的ListBox 我想使用后面的代码中的TranslateTransform沿X轴移动堆栈面板。 问题是,我找不到Stack Panel。 ThumbListBox.FindName(“ThumbListStack”) 什么都不返回 我想用它: Storyboard.SetTarget(x, ThumbListBox.FindName(“ThumbListStack”)) 如何获取堆栈面板,以便我可以将其与TranslateTransform一起使用 谢谢