5/2/2018 1:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.

Slides:



Advertisements
Similar presentations
The Microsoft Technical Roadshow 2006 Windows Presentation Foundation (WPF) Marcus Perryman
Advertisements

Microsoft Virtual Academy Stacey Mulcahy | Technical Evangelist Christopher Harrison | Content Developer.
DEV394 Windows Forms Performance Tips And Tricks Mike Henderlight Development Manager.NET Client Team Microsoft Corporation
IE Developer Tools Jonathan Seitel Program Manager.
11/12/ :06 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
12/29/2017 2:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Making of the Ignite Bot
Building engaging experiences
4/18/2018 3:49 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
DoRon Motter Development Lead Microsoft Corporation
5/3/2018 2:15 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
5/6/2018 2:37 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
5/12/2018 3:54 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/15/2018 5:43 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Wireless Communication and Networks
Windows Developer Day Fall Creators Update Chris Cortes
Beyond the EffectBrush with Windows UI New Effects, Brushes, Shadows and Lighting Chris Raubacher Senior Dev Lead Kelly Renner Senior Program Manager.
Unit testing your metro style apps built using XAML
6/10/ :23 PM TOOL-504T A deep dive into Visual Studio 11 Express for designing Metro style apps using XAML Joanna Mason & Unni Ravindranathan Program.
6/12/2018 3:52 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Ignite /19/2018 2:35 AM
Accessibility on Windows 10
7/19/2018 9:40 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Build /24/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Connect /2/ :38 AM
Microsoft Build /13/2018 2:24 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Building beautiful and interactive apps with HTML5 & CSS3
Power your app with Live services
Customizing your device experience with assigned access
Modernizing App Experiences
Microsoft Build /22/2018 3:05 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /10/2018 3:26 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Tips and tricks for developing Metro style apps using XAML
Hosted Web Apps with Windows App Studio
Tooling and Diagnostics
Microsoft Build /30/2018 2:15 AM Migrating Silverlight Windows Phone apps to the Universal Windows Platform Ricardo Villalobos Principal SDE Manager.
Skype for Business – App SDK
Vector iconography: Using SVG images in your app
A/B Testing for UWP Apps: Experiment for Success
Connected Animations Create seamless page transitions in the Fall Creators Update Steven Moyes Program Manager – User Experience Platform.
Effects in the Visual Layer Windows Composition: The Windows 10 EffectBrush Chris Raubacher Senior Dev Lead Kelly Renner Senior Program Manager.
12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Sessions about to start – Get your rig on!
Windows Phone: Optimizing Application Performance
Bare Metal Development for the Universal Windows Platform
Quality & Performance for XAML Apps
Windows Phone application performance and optimization
Bring apps to life with Metro style animations in HTML5
Microsoft Connect /31/2018 7:21 AM
Improving JavaScript Frameworks, Edge, & UWP Web Apps
1/2/2019 9:19 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Microsoft Build /16/2019 1:17 PM Adding Interactions in the Visual Layer to Create Customized & Responsive Experiences Anthony Young & Lindsay Kubasik.
Microsoft Connect /17/2019 9:55 PM
2/16/2019 1:48 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Bringing desktop apps to the UWP using Desktop App Converter
Build data-driven collection and list apps using ListView in HTML5
Delivering great hardware solutions for Windows
UI test automation of MVC apps with Microsoft Edge WebDriver
Windows Device Portal Hirsch Singhal Program
Using Expression Animations to Create Engaging & Custom UI
4/20/2019 Share © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
4/29/2019 9:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
4/29/ :17 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Advanced multi-user capabilities in Dev Center
User Segmentation and Targeted Push Notifications for UWP apps
5/30/2019 1:59 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Combining XAML and DirectX
Contexualized Data In Document Authoring
Presentation transcript:

5/2/2018 1:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tips and Tricks for Creating Performant UI in UWP 5/2/2018 1:53 AM P4173 Tips and Tricks for Creating Performant UI in UWP David Li, Program Manager Robert Mikhayelyan, Software Engineer © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Beautiful and Performant

Tips and Tricks Images and Lazy Loading Lazy Loading with x:Load Image Loading Optimizations LoadedImageSurface Effects, Lights, and Capabilities Smart Creation of Lights and Effects Composition Capabilities Battery Saver Relative Size / Offset in the Visual Layer RelativeSize Adjustment RelativeOffset Adjustment

Loading Hidden Content with x:Load

Demo: x:Load

Loading Hidden Content with x:Load Before: Setting visibility hidden on groups of visual content Expensive, especially if some content never gets loaded All the cost is paid upfront when the app is first launched and loaded After: x:Load A replacement for x:DeferLoadStrategy Defer elements that are not visible in the first frame For ListView scenarios, use x:Bind and x:Phase to increase scrolling performance Reduction of Visual Tree Size You don’t pay the cost for creating elements until the user needs them Turn on UI Analysis in VS to see where this might be helpful

Image Loading Optimizations

Some refreshers on XAML image practices Microsoft Build 2017 5/2/2018 1:53 AM Some refreshers on XAML image practices Ideally use vector graphics when possible to avoid adding multiple large image assets to your project SVGs are now supported for the Creator’s Update When loading bitmap images, remember to specify the decode pixel width and decode pixel height In lists and grids, remember x:Phase – prioritize loading of most important content first © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo: Loaded Image Surface

Microsoft Build 2017 5/2/2018 1:53 AM Loaded Image Surface Now takes much less code, and it’s optimized for speed No need to handle device lost, and XAML handles caching and integration of PLM for you for freeing up video memory while app is suspended Avoid creating a second D3D device and associated memory overhead © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Adaptive Lights and Effects

Adaptive Lights and Effects New XAML Effects and Lights in Creator’s Update OnConnected and OnDisconnected overrides should be used for creating and disposing Composition objects When it comes to blur, lights, and shadows – less is more Blur, spotlights, and animated masked shadows are powerful effects that can have power and performance implications if overused Composition Capabilities APIs for hardware that do not support the most powerful effects Power Management and Energy Saver Status APIs for tailoring brushes / effects experience for users who might want to save battery

Demo: Adaptive Effects

Visual Layer: Relative Sizing and Offset

Visual Layer: Relative Sizing and Offset For those working in the Visual Layer, we’ve introduced RelativeSizeAdjustment and RelativeOffsetAdjustment These APIs add the ability to more easily arrange Visuals Benefits: Easier to code than manually handling size changed Faster – an optimized solution that directly targets the pattern we see of developers using expressions to handle layout More responsive as the resizing happens on the system level Avoid creation of Expression Animation objects for simple scenarios

Demo: Relative Sizing

Tips and Tricks Images and Lazy Loading Lazy Loading with x:Load Image Loading Optimizations LoadedImageSurface Effects, Lights, and Capabilities Smart Creation of Lights and Effects Composition Capabilities Battery Saver Relative Size / Offset in the Visual Layer RelativeSize Adjustment RelativeOffset Adjustment

5/2/2018 1:53 AM Call to action Tweet us your awesome and performant UI creations @WindowsUI Play with the sample code on our GitHub repository Re-visit Build session recordings on Channel 9 Continue your education at Microsoft Virtual Academy online #MSBuild © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Related Content BUILD 2017 Talks B8037: Explore the next generation of innovative UI in the Visual Layer B8100: What’s new and coming for Windows UI: XAML and composition P4078: Vector Iconography: Using SVG images in your app Performance articles on Windows Dev Center Includes content on optimizing background activity, ListView / GridView optimizations, keeping UI thread responsive, optimizing layout, and more Optimizing your xaml app for performance (10 by 10) #MSBuild

5/2/2018 1:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.