文檔金喜正規買球>>Devexpress WPF控件文檔中心>>觸摸滾動條
觸摸滾動條
DevExpress控件支持觸摸滾動條。默認情況下,觸摸滾動條是隱藏的,當將鼠標指針懸停在其上時顯示,從而導致滾動條部分重疊網格內容區域的右邊框或下邊框。
要顯示觸摸滾動條而不是常規滾動條,請將DevExpress控件或可視化樹中更高級別控件的ScrollBarExtensions.ScrollBarMode屬性設置為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>
