0

I'm learning C#(WPF) recently and want to open a website through webview2, my code works fine on my PC, but after I publish my project and run it on another PC, it didn't work,the webview2 control is totally blank!I have installed .Net framework required to the second PC. Why so? What have I done wrong? here is my xaml code:

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <wv2:WebView2 Name="webView" Source="http://coinlist.co/login"></wv2:WebView2>
        <Button Grid.Row="1" VerticalAlignment="Bottom" Click="Button_Click">naviagte</Button>
        <TextBox Grid.Row="2" Name="cl_url">ss</TextBox>
       
    </Grid>

enter image description here

0 Answers0