如果我使用此代码:
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto" Margin="25, 0, 0, 0"
Grid.Row="0">
<phone:WebBrowser DataContext="{Binding Path=Descrption}"
x:Name="webBrowserHTML" Foreground="Black"
Loaded="webBrowserHTML_Loaded" />
</ScrollViewer>
我可以将 webbrower 的数据上下文与描述绑定,但是当我添加这样的堆栈面板时,绑定失败!
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto" Margin="25, 0, 0, 0"
Grid.Row="0">
<StackPanel>
<phone:WebBrowser DataContext="{Binding Path=Descrption}"
x:Name="webBrowserHTML" Foreground="Black"
Loaded="webBrowserHTML_Loaded" />
</StackPanel>
</ScrollViewer>
请问有什么解决办法吗??
问候