WPF添加Webbrowser
<Window x:Class="WPFWebbrowser.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WPFWebbrowser"
mc:Ignorable="d"
Title="MyWpfTest" Height="550.278" Width="685">
<Grid Margin="0,0,2,-47">
<WebBrowser HorizontalAlignment="Left" Height="556" VerticalAlignment="Top" Width="675" Name="wb1" />
<Button Content="Button" HorizontalAlignment="Left" Margin="345,34,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
</Grid>
</Window>
评论