Coder Social home page Coder Social logo

webview-samples's People

Contributors

rjmurillo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

webview-samples's Issues

Right click in webview does not work in Win32WebViewSampleApp

The web view does not respond to right clicking. If the window is maximized, when the user clicks, on the webview, the window popup menu opens in the upper left part of the screen. (see image)

image

Platform: Windows 1909 64bit
Visual studio 2019

@rjmurillo Do you think this is an issue of the embedding app or the windows control?

Web View in Windows Form not loading

Hi Team,
I am trying to open webview in windows forms and i am using below versions of

image

and below code to load ADFS Url in webview so that user can key in username,password to authorize
Hi,

I am trying to load windows forms app if the user is succesfully logged into AD, For the same i am using
.NetCore3 preview 4

In Windows forms

var authResult = authContext.AcquireTokenAsync(resourceURI, clientID,
new Uri(clientReturnURI),
new PlatformParameters(PromptBehavior.Always, new CustomWebUi(SynchronizationContext.Current))); //Dispatcher.CurrentDispatcher

In

CustomWebUI Class

class CustomWebUi : ICustomWebUi
{

private readonly SynchronizationContext _dispatcher;
    public CustomWebUi(SynchronizationContext dispatcher)
    {
        _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
    }

public Task AcquireAuthorizationCodeAsync(Uri authorizationUri, Uri redirectUr)
{
var tcs = new TaskCompletionSource();

        _dispatcher.Send(_ =>
        {
            //anything you wish.
            var webView = new WebView();
            webView.
            var w = new Window
            {
                Title = "Auth",
                WindowStyle = WindowStyle.ToolWindow,
                Content = webView,
            };
             w.Loaded += (sender, args) => webView.Navigate(authorizationUri);
	w.Loaded += (sender, args) => webView.NavigateToString("<title>sfsdf</title>");
            

	if (w.ShowDialog() != true && !tcs.Task.IsCompleted)
            {
                tcs.SetException(new Exception("canceled"));
            }
        }, null);

}
}

When i load it, It gives me below error. Can you please let me know where am i going wrong.

image

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.