我有一个包含网络浏览器的滚动查看器,我还需要 <Button Grid.Row="1">
<Button.Background>
<ImageBrush ImageSource="../Images/cont_banner.png" />
</Button.Background>
<Button.Content>
<HyperlinkButton Content="" NavigateUri="callto:3950" />
</Button.Content>
</Button>
在滚动视图内添加一个按钮,但我不能。
这是我在 scoolviewer 外带有按钮的代码,我怎样才能将它移到里面?
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="100"/>
</Grid.RowDefinitions>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Margin="25, 0, 0, 0" Grid.Row="0">
<!--<TextBlock Text="{Binding Path=Descrption}" Style="{StaticResource servicesText}" TextWrapping="Wrap" />-->
<phone:WebBrowser DataContext="{Binding Path=Descrption}" x:Name="webBrowserHTML" Foreground="Black" Loaded="webBrowserHTML_Loaded" />
</ScrollViewer>
<!--<Image Source="../Images/cont_banner.png" Width="270" Grid.Row="1"/>-->
<Button Grid.Row="1">
<Button.Background>
<ImageBrush ImageSource="../Images/cont_banner.png" />
</Button.Background>
<Button.Content>
<HyperlinkButton Content="" NavigateUri="callto:3950" />
</Button.Content>
</Button>
</Grid>
</DataTemplate>
</controls:Pivot.ItemTemplate>