zoukankan      html  css  js  c++  java
  • WPF WebBrowser

     
    XAML
    <Window x:Class="WpfApplication5.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="340" Width="597">
        <Grid>
            <Button Height="23" HorizontalAlignment="Left" Margin="8,9,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Button</Button>
            <WebBrowser Name="webBrowser1"  Width="518" Height="221"/>
        </Grid>
    </Window>
     
     
     
     
     
     
    XAM.CS
     
     private void button1_Click(object senderRoutedEventArgs e)
            {
                webBrowser1.Navigate(new Uri("http://w2i.wanmei.com/launcher/index.htm"));
            }
     
     
     
     
     
     
    xaml full
    <Window x:Class="WpfApplication5.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="340" Width="597">
        <Grid>
            <Button Height="23" HorizontalAlignment="Left" Margin="8,9,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Button</Button>
            <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <WebBrowser Name="webBrowser1"  Width="518" Height="221"/>
            </DockPanel>
        </Grid>    
    </Window>
     
     





    附件列表

  • 相关阅读:
    为什么mvc里面的ModelState.IsValid一只都是true
    ASP.NET MVC Filters 4种默认过滤器的使用【附示例】
    ASP.NET MVC学习之过滤器篇(1)
    百分比定位加position定位的常用布局
    angular_$inject
    angular的$scope,这东西满重要的
    angular-scope.assign
    angular_$attrs
    angular-input
    angular_form
  • 原文地址:https://www.cnblogs.com/xe2011/p/3720228.html
Copyright © 2011-2022 走看看