Is it possible to show a secure third-party web page within my Universal Windows app? - windows-10-universal

Imagine that I want to display https://www.gmail.com in my Universal Windows app. Is there a way to do this?

You would want to use a webview control: https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/web-view. As written in the article, here's how you would implement it.
In xaml
<WebView x:Name="webView1" Source="https://www.gmail.com"/>
If you want to navigate it using code:
webView1.Navigate("https://www.gmail.com");

Related

How to load Google Maps in wpf window?

Is it possible to load Google Maps in wpf window? If yes how can i do this?
I'm using visual studio-2010 and DevExpress tool.
This code i found from DevExpress official site for openstreetmaps.
const string roadUrlTemplate = #"http://{subdomain}.tile.openstreetmap.org/{tileLevel}/{tileX}/{tileY}.png";
An easy way is to use the WebBrowser control.
In XAML add:
<WebBrowser x:Name="wbMaps" Source="https://www.google.com/maps"/>
If you are not limited to using Google Maps then take a look at the Bing Maps WPF control for a truly native WPF map solution:
http://msdn.microsoft.com/en-us/library/hh750210.aspx
If you need to use Google Maps you can of course use a web browser control and create an interlop to communicate between C# and JavaScript however if you want a native WPF solution then take a look at some open source solutions like the following:
http://greatmaps.codeplex.com/
https://github.com/ericnewton76/gmaps-api-net

Gecko for windows forms and geolocation. How to accept request for share my location?

My main purpose is get my current geolocation. I've tried to do it with standart control
"WebBrowser" but geolocation is not supported by it. So now I'm trying to implement Gecko wrapper https://code.google.com/p/geckofx/ and xulrunner-3.6.28.en-US.win32.sdk (or xulrunner-1.9.2.19.en-US.win32) to windows forms.
It perfectly navigate to any url in windows forms.
But I've problems to get current geolocation in it. It doesn't give me a window to accept "share my location" as any other browser does.
How to do it? in wrapper using GeckoWebBrowser i've not seen any method or property to allow share location. So I think it should be made using xulrunner library.
How I can do that? Or if it's very complicated with gecko, what another browser I can use in windows forms to be able to get my current geolocation?
You will need to use a newer Geckofx
Also you need to ensure you exactly match the geckofx version with the correct xulrunner/firefox version.
GeoLocation doesn't yet have nice C# wrapper classes around it in geckofx, but you can access it using the xpcom C# interops.
var instance = Xpcom.CreateInstance<nsIGeolocationProvider>("#mozilla.org/geolocation/provider;1");
then look at the api

What to do for using an EXTJS application work on mobile/tablets?

I have created an EXTJS application and want it to be work on mobile or tablet?
Is it possible to do that?if yes how can we do that?
When I was trying this on the iphone i was not able to see all the content/page at a time.
like i was not able to scroll or navigate through the page.
Can any one can help me out of this?????
Thanks in advance
Yes you can, but you wont like the way it is.
The best way to integrate a ExtJS browser application with some mobile devices is to develop an alternative for those, using Sencha Touch.

Screen scraping silverlight browser application info

I'm registered to a site which uses a silverlight application that shows some personal information.
My goal is to be able to read some data from the silverlight application.
Is it possible?
I know that this could be done to a regular web page using curl.
but, what about silverlight application?
Does it store the information to a file or something like that?
Thanks
You can use White, a tool for automating windows applications, to get information out of a running Silverlight application. White is mainly used to perform functional testing of applications, but it should allow you to extract information from the application as well.
Look here for an example of White and Silverlight: http://www.codeplex.com/wikipage?ProjectName=white

Facebook Connect in Silverlight

Is there a good way to get Facebook Connect onto a Silverlight page? All I really need is simple authorization/registration. I've looked into the facebook developer toolkit, but the documentation is more or less non-existent for Silverlight, and I didn't really get anywhere with it.
Is there a good tutorial or a working library for adding Facebook Connect into a Silverlight app? Or is the best way to run Silverlight in Windowwless mode with HTML overlayed on top?
Are you looking for something like that? http://apps.facebook.com/chatmotion/
Before developing this small test app i took a look at these samples: http://facebooktoolkit.codeplex.com/releases/view/39727
Make sure to download the newest source code of the Facebook Development Kit for .NET and build it yourself since the release version(January) didn't work for me correctly.
Let me know if you have any problems.
I've decided to use the WebBrowser control that was added in Silverlight 4 to accomplish this.

Resources