Tip, tricks, and secrets:¬†Building a great UWP app for PC

Sign in to queue

Description

When you go to start your next development project for the desktop, start with UWP! Why? Fair question! Well, you probably already know UWP supports amazing features like notifications, adaptive layout, and controls customization, but did you know UWP supports multiple window instances? How about drag-and-drop, compact overlay, and app streaming? And, even more is coming in future updates like file access improvements, command line and console support, and a lot more! Come to this session to learn practical tips, tricks, and secrets about UWP you can use in your next app. Come build the future with us using UWP!

Day:

3

Session Type:

Breakout

Code:

B8012

Room:

WSCC Hall 6C (740)

Embed

Download

Download this episode

The Discussion

  • User profile image
    sirsroger

    Where is the code for the first demo?

  • User profile image
    StefanWick

    We are doing some final cosmetic touches on the code and will get it out on GitHub shortly. It will go into our Desktop Bridge Samples repo here.

    Note that there is already an older Northwind sample up there, but that's not the one we demo'ed at BUILD2017. It does use some of the same concepts in regards to the Desktop Bridge though.

    Thanks,
    Stefan Wick

  • User profile image
    aceguy2017

    UWP is not a viable solution for many mission critical applications that need to run with unrestricted access to the file system as well as perform inter-process communication and long running background operations. For example, a UWP app gets suspended every time the app is minimized or loses focus - this is not acceptable for desktop apps that have continuously running background threads performing critical tasks. Although UWP maybe good for consumer facing apps, it seems that Microsoft is not focusing enough on supporting desktop apps that could benefit from the modern XAML UI without sacrificing core desktop functionality. For example, it should be possible to use the UWP touch friendly XAML controls to build a desktop app so that it has the best of both worlds - smooth, fluid UI with full support for conventional desktop scenarios such as long running background tasks, file system access, inter process communication, etc.

    A follow up question - Does Microsoft use UWP to build its desktop apps such as Visual Studio, Office, etc ? If not, why is Microsoft asking other developers to abandon technologies such as WPF and move to UWP ?

  • User profile image
    StefanWick

    Suspending apps when they get minimized is a good default for the overall system health. Apps that need to keep running when minimized can definitely change that behavior as documented here:

    https://docs.microsoft.com/en-us/windows/uwp/launch-resume/run-minimized-with-extended-execution

    We are not asking developers to abandon their WPF or other existing investments. In fact with the Desktop Bridge project we are enabling them to take advantage of the full power of Windows 10 with their existing code investments. They can keep their current code running without restrictions, packaged as a Universal Windows app package, and gradually take advantage of new UWP features at their own pace. They do get the best of both worlds.

    Microsoft apps are taking the same path: some go straight to pure UWP (like OneNote or Paint), while others are doing the Desktop Bridge migration (like the full desktop versions of Word, Excel, Powerpoint).

    As we have stated in the BUILD2017 session, we know that UWP is not complete yet, we have gaps to plug in order to support certain types of applications. We are making big steps forward in the Fall Creators Update by aligning with NET Standard 2.0 and by adding support for more Win32 APIs as well. There is more work happening beyond that and I would like to invite everyone to help with the prioritization by posting/voting on UserVoice:

    https://wpdev.uservoice.com/forums/110705-universal-windows-platform/

    Thanks,
    Stefan Wick

     

  • User profile image
    pnp0a033

    I was truly impressed with this session. My most favorite one is an extension of AppXManifest - MultiInstanse=true, windows.startupTasks, etc.. these are required parts for UWP app.  But I have one question .. Does Creators update have these improvements? or we should still wait the "Fall" Creators update?

  • User profile image
    StefanWick

    @pnp0a033: The manifest extensions that we have shown in the session are not available in the current Creators Update. If you are in the Windows Insider program you will start seeing some of them become available for you to test in the next couple of weeks. Once they are in an insider build we will publish samples on GitHub to help you get started. If you want to keep in touch on this topic, follow me on Twitter (@StefanWickDev) to see timely updates when things become available publicly.

    Thanks,
    Stefan Wick

     

  • User profile image
    StefanWick

    @sirsroger: the first demo has now been published

    Please see my blog post: https://stefanwick.com/2017/05/24/my-build2017-session-recap-and-next-steps/

    Here is the direct link to the code on GitHub: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/SQLServer

  • User profile image
    dhruval1984

    @StefanWick:Missing Windows reference in SQLBridge, when trying to build the solution.

  • User profile image
    StefanWick

    @dhruval1984:this has been fixed

Add Your 2 Cents