文檔首頁>>Devexpress WPF控件文檔中心>>觸摸滾動條
觸摸滾動條
DevExpress控件支持觸摸滾動條。默認(rèn)情況下,觸摸滾動條是隱藏的,當(dāng)將鼠標(biāo)指針懸停在其上時顯示,從而導(dǎo)致滾動條部分重疊網(wǎng)格內(nèi)容區(qū)域的右邊框或下邊框。
要顯示觸摸滾動條而不是常規(guī)滾動條,請將DevExpress控件或可視化樹中更高級別控件的ScrollBarExtensions.ScrollBarMode屬性設(shè)置為TouchOverlap,請看下面的例子。
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" x:Class="TouchScrollbars.MainWindow" Title="MainWindow" Height="500" Width="800"> <Grid dx:ScrollBarExtensions.ScrollBarMode="TouchOverlap"> <dxe:ListBoxEdit ItemsSource="{Binding}" /> </Grid> </Window>