2009-02-25 42 views
2

我正在製作一個應用程序用於觸摸屏。其中一種形式顯示了滾動條激活的列表框,通過用手指觸摸屏幕有點棘手。列表框WPF中的滾動條定製

我試圖做出一個樣式,使滾動條內的大按鈕,但我不能將其應用於列表框。

是否有可能在列表框中的滾動條中製作更大按鈕的樣式?

感謝

回答

2

如果使用混合,那麼你需要:

1. Right click your ListView 
2. Select "Edit Control Parts --> Edit a copy" 
3. Now right click the ScrollViewer in "Objects and Timeline" 
4. Select "Edit Control Parts --> Edit a copy" again 
5. Now you're editing a template for the ScrollViewer and you can play 
    with the size of the VerticalScrollBar 

如果你不使用混合,那麼你只是創建爲ListView的模板是指新模板ScrollViewer。