0
我堅持着一個問題,我似乎無法得到解決......設置一個ScrollViewer中的內容到另一個的ScrollViewer(使用C#在Windows Phone)
我需要設置的內容一個ScrollViewer到另一個(其中包含一個StackPanel,其中包含圖像和文本)。
我嘗試了以下方法,並不斷收到錯誤(「參數不正確」)。
scrollViewer[1].Content = scrollViewer[2].Content;
和
scrollViewer[1].Content = stackPanel[2]; // stackPanel[2] is currently what the content of scrollViewer[2] is set to
我還試圖消除的ScrollViewer [1]作爲的ContentPanel的孩子創造一個新的實例,然後將它添加。
我也曾嘗試將scrollViewer [1] .Content設置爲null,然後將其設置爲其他任何內容。
有沒有人知道解決這個問題的方法?我錯過了什麼?任何線索將不勝感激!
工作,謝謝!應該想到: - /。 – user1259445 2012-04-13 13:12:26