0

我正在尝试在我的 Metro 应用程序中隐藏滚动条,就像我通常在 Windows Phone 应用程序中所做的那样:

<WebView x:Name="webView" 
    Height="395" Width="300"
    ScrollViewer.VerticalScrollBarVisibility="Hidden"
    ScrollViewer.HorizontalScrollBarVisibility="Hidden"/>

但即使我用嵌入式包围它也不起作用

<ScrollViewer Name="ScrollViewerForWebView"
    Grid.Row="1"
    Grid.Column="1"
    HorizontalAlignment="Left"
    VerticalAlignment="Top" 
    VerticalScrollBarVisibility="Hidden"
    HorizontalScrollBarVisibility="Hidden">

    <WebView x:Name="webView" Height="395" Width="300" />
</ScrollViewer>

谢谢!

4

1 回答 1

0

如果你设置

ScrollViewer.VerticalScrollBarVisibility="Disabled"
于 2012-10-09T17:41:56.333 回答