what i want is to launch native map application on button click in my winRT application using C# and XAML. Is it possible?
Protocol activation is the key, LaunchURIAsync is the API.
Take a look at the Association Launching sample for code, and for maps in particular here is the URI Scheme that shows how you can launch the app into various different modes and experiences.
Related
i have a windows application and now we want to upgrade it to web application.
Is there any way to use same forms from web application
to avoid duplicate work to develop same page in web application.
i want to open windows form on one click from web form. please provide any sample code if possible.
It's not something you can do automatically. You can reuse your business logic behind the application but you have to write a new UI from scratch. You can also try to use some automated tools but to be honest in most cases you will have to put significant amount of work to get your application working the same as window windows application. You must consider and implement new security policy regarding data transfer/presentation in your web app.
As Adjorem said, simply, no. Even if you find a converter it will probably make a mess and you'll need to do a lot of refactoring.
To open your windows app from web app:
You can register your own url protocol to start your application, e.g myfancyapp.
On your website you can create an href="myfancyapp://...". You can parameterize your windows app through a downloadable file with startup infos.
See:
How do I register a custom URL protocol in Windows?
If you want, you can check, if your app is installed with the help of fonts. Install a font (with a special name) with your app installer. You can then check if font is available on your website and display a message "Please install windows app first".
How do I make my Universal Application launch an another application like Twitter?
For example, opening Twitter and make it show a given profile (#somebody).
I came across this webpage while trying to launch an external windows store app through a webpage.
This was very handy to get it done.
https://comentsys.wordpress.com/2015/05/13/windows-10-universal-windows-platform-web-browser/
I have an application named MyApplication. What I am trying to do is to do deep linking.
I would like to associate a link that when click on my Windows Phone 8.1 XAML, the application will be launched with the elements passed.
For example: MyApplication://item/1234 -> will open my application.
I am trying to do this from outside of an application is this possible? for example if I clicked on this link that was in an email, could it be redirected to my application?
Edit:
Here is part of the solution but i am not finding what i really wanted to do:
Uri Activation(XAML)
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779670.aspx
Code:
https://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec
You sure can. Create the protocol (something like test:) in your app and deploy it to your machine. Then, in Start>Run type "test:" and your app will load just fine. A link in email? Sure. A link in a web page? Sure. It all works.
A little more: http://blog.jerrynixon.com/2012/10/walkthrough-using-windows-8-custom.html
Best of luck!
I'm newbie in WPF/Silverlight world. In the first step , I developed a "Hello world" application and simply run it but the problem is application successfully run only on Internet explorer. When I changed my browser like chrome or firefox etc, application pop up a Save window which means browser unable to understand the filetype. I want to know any plugin required to smothly run my WPF project on different web browsers.
IMO, You are referring to Silverlight and not WPF
WPF Applications are Desktop Applications and they are not made for Browsers.
And Silverlight is cross-platform, across browsers.
You can download and install the plugin from here,
http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
I think you are looking for Silverlight, not 100% sure tough
WPF browser based application can run in the IE and firefox web browser. One can use silverlight for implementing the WPf browser based application. But silverlight is the small subset of WPF framework. The machine running the WPF web browseer based application must be installed with the .Net runtime environment. WPF web browser based application ideally used for the intranet usages.
We are working on a C# Xaml-based Windows Store app.
We have integrated bing maps within the app, but we were wondering if it were possible to launch the "Maps" app to a certain address?
We don't want to implement full directions, so it would be nice to just provide a button to launch maps so they can do it from there.
Take a look at the URI Scheme for maps application in conjunction with LaunchUriAsync, I think it should do the trick.