2012-02-28 39 views

回答

1

將它從visualtree中刪除。假設您的控件「myControl」包含在名爲「LayoutRoot」的面板派生類中,那麼您可以這樣做:

LayoutRoot.Children.Remove(myControl)。

相關問題