我想爲我的ListBox
指定多個列,但是我的搜索技巧在這一個上失敗了。如何自定義ListBox的ItemsPanelTemplate的佈局?
如何修改ListBox
的ItemsPanelTemplate
來自定義顯示的列?
編輯:忘了什麼我已經試過已經
我已經試過代碼
<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
<UniformGrid Columns="3" />
</ItemsPanelTemplate>
除了我失去了垂直滾動條
您希望修改'ItemsPanelTemplate'的哪些控件? – Rachel 2012-07-11 15:51:31
一個'ListBox',雖然只是因爲這就是Blend爲我自動生成的東西...我想從一個網格列表中顯示項目,就像一個不太複雜的Zune專輯藝術視圖。 – humanstory 2012-07-11 15:53:44
你確實需要ListBox的選擇能力嗎?如果沒有,我會建議切換到'ItemsControl',並且在我的博客上有一些[ItemsControl Examples](http://rachel53461.wordpress.com/2011/09/17/wpf-itemscontrol-example/)包括一個關於設置'ItemsPanelTemplate'的示例 – Rachel 2012-07-11 15:54:49