SlideShare a Scribd company logo
1 of 21
Download to read offline
xedotnet.org
How to modernise WPF and
Windows Forms applications
with Windows Apps SDK
Mirco Vanini
@MircoVanini
• Windows Form | aka WinForms
• Windows Presentation Fondation | aka WPF
• Universal Windows Platform | aka UWP *
• Windows UI | aka WinUI
• .NET Multi-Platform Application UI | aka MAUI
• Blazor Desktop
• Windows App SDK
Desktop Technologies
* Microsoft stirred up some debate with its recent announcement that ".NET 5/6 Will Not Be Coming to UWP Project Types,"
which many decried as a further deprecation of UWP on the part of the company.
Platforms
• Support to latest tooling and C# features
• Core runtime and API improvements
• Performance
• Deploy
• Side by side
• Machine global or app local framework
• Self conteined EXEs
Desktop Application .NET 6
• WPF and Windows Forms supported as first-class citizens in .NET
• Improved Designer Support (both WinForms and XAML)
• Improved ClickOnce Support
• Improved performance and reliability
• Accessibility improvements
• Quick Actions
• XAML Hot Reload Improvements (WPF /WinUI)
• Hot Reload
• IntelliSense Improvements
Windows Development
• Use the new TFM dedicated to Windows to light up most of the APIs and features
from Universal Window Platform
• Easily integrate notification, geolocation, Windows Hello, Bluetooth, Low Energy, …
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>
Windows 10 integration
• .NET aims to re-introduce the experience of publishing small, self-contained
version of applications
• Across all .NET application formats (Windows, Web,…)
• Across all the platforms (Windows, Mac, Linux)
• Required Framework components are included in the deployment
• True xcopy-enabled, single-file executables
• Assembly Trimming
• .NET has come a long way for this
Single File Applications
• New Edge-Chromium-based HTML control
• Available in Windows Forms, WPF
• .NET Framework, .NET Core 3.x, and .NET 5/6
• Windows 7 and later
• Evergreen (updated every 6 weeks)
• WebView2 Evergreen is now a Windows component
WebView2
• .NET has many performance and size optimizations specifically driven by
support for ARM chips
• ARM chips are very popular in phones, but they are also becoming more
popular in laptops
• Surface Pro X is ARM-based
• Apple has announced that their Apple Silicon-based Macs will be ARM based
• IoT devices are often based on ARM chips
• Raspberry Pi 3 & 4 are ARM-based
ARM64
• Improvement to in-app toolbar
• Inline color previews
• Design Time Data
https://docs.microsoft.com/visualstudio/xaml-tools/xaml-designtime-data
• Refresh designer button
• Suggested Actions
• XAML Hot Reload
• XAML Binding Failures
• New Designer for .NET FW apps
• XAML Live Preview !
New features in XAML Tooling
• Reduce time and difficulty modernizing older .NET codebases
• Helps to analyze and upgrade older codebases
• Understands dependencies
• Provides guidance and assistance
• Multiple project types supported
Learn more | https://aka.ms/dotnet-upgrade-assistant
.NET Upgrade Assistant
• Support new hardware
• Modern use experience
• App deploy and management
• Reliability, security, privacy
• System performance and battery life
Making app great for people who use them
… but starting where you are
• Compatibility with all you code (WinForm, WPF, UWP, MFC)
• Support for existing packaging and deployment
• Features that work across users’ version of Windows 10/11
• This is the former “Project Reunion”
• Re-unification of various Windows/Desktop UI technologies
• WinForms, WPF, UWP, WinUI, Xamarin
Windows App SDK
The Windows App SDK is a set of new
developer components and tools that
represent the next evolution in the Windows
app development platform. The Windows
App SDK provides a unified set of APIs and
tools that can be used in a consistent way by
any desktop app on Windows 11 and down-
level to Windows 10, version 1809.
The Windows App SDK does not replace the Windows SDK or existing
desktop Windows app types such as .NET (including Windows Forms and
WPF) and desktop Win32 with C++. Instead, the Windows App SDK
complements these existing tools and app types with a common set of APIs
that developers can rely on across these platforms.
1709 1803 1809 1903 1909 2004 Win11
2018 2019 2020 2021
Windows App SDK
App type 1.0 1.1 (Q2 2022)
Desktop apps
(WinUI 3, WPF, etc)
✅ WinUI 3**
✅ Text rendering
✅ Resource management
✅ App lifecycle
✅ Windowing
🔁 Push Notifications
✅ WinUI 3**
✅ Text rendering
✅ Resource management
✅ App lifecycle
✅ Windowing
✅ Push Notifications
✅ Multiple windows
✅ Elevation support
✅ Local toast notifications
✅ Environmental variables API
✅ Restart API
✅ Self-contained deployment
✅ Supported | 🔁 Experimental
** - WinUI 3 in 1.0 and 1.1 is only supported for use by full WinUI 3 apps. You'll be able to use WinUI 3 in
WPF/WinForms/other apps in a future release via XAML Islands.
WinUI 3
• Continuation of WinRT, XAML Islands,…
• Windows 10/11 only
WinUI 3 is the next generation of
the WinUI framework. It
dramatically expands WinUI into a
full UX framework, making WinUI
available for all types of Windows
apps – from Win32 to UWP – for
use as the UI layer.
• The .NET team is working on next-generation cross-platform
framework for C# developers, called MAUI (Multi App User Interface)
• Use .NET and C# to build application for iOS, Android, MacOS and
Windows
• Share business logic and UI
• WinUI and Windows App SDK is the target framework for Windows
Windows Apps SDK and cross-platform apps
Demo
• Windows Apps SDK SDK doesn’t include only WinUI, but other
features that can be integrated in existing Win32 apps:
• Resource manager
• Activation APIs
• Windowing APIs
• Text rendering
• Push notification
Windows Apps SDK, ther is more...
• Supporto also in Win32 apps the rich activation system introduced in
the universal Windows Platofrm like file, protocol, statup task,
pickers, etc.
• Enables the usage oa the AppInstance class to manage single-
instance apps and multi-instanced apps
• It enables advanced redirection scenarios, like working in single
instance mode, but switching to multi-instance if the application is
activated from file
Windows Apps SDK – Activation APIs
• New AppWindow API which acts as a high-level implementation of
HWND
• Lot of customization options for your windows:
• Customize the title bar
• Use a custom title bar based on XAML
• Support full screen and compact overlay
Windows Apps SDK – Windows management APIs
Q&A
.NET
your platform for building anything
Mirco Vanini
Microsoft® MVP Windows Development
myContactInfo:
{
”e-mail”:“mirco.vanini@proxsoft.it”,
“web”: “www.proxsoft.it”,
“twitter”: “@MircoVanini”
}

More Related Content

What's hot

Top 8 sustainability manager resume samples
Top 8 sustainability manager resume samplesTop 8 sustainability manager resume samples
Top 8 sustainability manager resume samples
davikeler
 
Net zero energy neighbourhood.pdf
Net zero energy neighbourhood.pdfNet zero energy neighbourhood.pdf
Net zero energy neighbourhood.pdf
wafa786110
 
Vertical Slicing Architectures
Vertical Slicing ArchitecturesVertical Slicing Architectures
Vertical Slicing Architectures
Victor Rentea
 

What's hot (20)

GREEN BUILDING
GREEN BUILDINGGREEN BUILDING
GREEN BUILDING
 
Using Software Architecture Principles in Practice
Using Software Architecture Principles in PracticeUsing Software Architecture Principles in Practice
Using Software Architecture Principles in Practice
 
Breaking Into AI/ML Product Management by Facebook Product Leader
Breaking Into AI/ML Product Management by Facebook Product LeaderBreaking Into AI/ML Product Management by Facebook Product Leader
Breaking Into AI/ML Product Management by Facebook Product Leader
 
Top 8 sustainability manager resume samples
Top 8 sustainability manager resume samplesTop 8 sustainability manager resume samples
Top 8 sustainability manager resume samples
 
The Most Important PM Virtue by Disney SVP of Product
The Most Important PM Virtue by Disney SVP of ProductThe Most Important PM Virtue by Disney SVP of Product
The Most Important PM Virtue by Disney SVP of Product
 
How to be a Growth Product Manager by Microsoft Sr PM
How to be a Growth Product Manager by Microsoft Sr PMHow to be a Growth Product Manager by Microsoft Sr PM
How to be a Growth Product Manager by Microsoft Sr PM
 
Net zero energy neighbourhood.pdf
Net zero energy neighbourhood.pdfNet zero energy neighbourhood.pdf
Net zero energy neighbourhood.pdf
 
How to Influence Without Authority by BestBuy Sr Product Manager
How to Influence Without Authority by BestBuy Sr Product ManagerHow to Influence Without Authority by BestBuy Sr Product Manager
How to Influence Without Authority by BestBuy Sr Product Manager
 
Vertical Slicing Architectures
Vertical Slicing ArchitecturesVertical Slicing Architectures
Vertical Slicing Architectures
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Agile product management
Agile product managementAgile product management
Agile product management
 
Laptop Proposal Slides
Laptop Proposal SlidesLaptop Proposal Slides
Laptop Proposal Slides
 
Ergonomie des IHM web - Grille d'analyse des 12 règles
Ergonomie des IHM web - Grille d'analyse des 12 règlesErgonomie des IHM web - Grille d'analyse des 12 règles
Ergonomie des IHM web - Grille d'analyse des 12 règles
 
[Pcamp19] - Escaping the Build Trap - Melissa Perri
[Pcamp19] - Escaping the Build Trap - Melissa Perri[Pcamp19] - Escaping the Build Trap - Melissa Perri
[Pcamp19] - Escaping the Build Trap - Melissa Perri
 
The search for Product-Market Fit
The search for Product-Market FitThe search for Product-Market Fit
The search for Product-Market Fit
 
TrakSYS 10 | Performance Management Solution | MES
TrakSYS 10 | Performance Management Solution | MESTrakSYS 10 | Performance Management Solution | MES
TrakSYS 10 | Performance Management Solution | MES
 
Green buildings
Green buildingsGreen buildings
Green buildings
 
Abstract: Culture and Engineering
Abstract: Culture and EngineeringAbstract: Culture and Engineering
Abstract: Culture and Engineering
 
Customer Centric & Hypothesis Driven Innovation by Cruise VP of Product Engin...
Customer Centric & Hypothesis Driven Innovation by Cruise VP of Product Engin...Customer Centric & Hypothesis Driven Innovation by Cruise VP of Product Engin...
Customer Centric & Hypothesis Driven Innovation by Cruise VP of Product Engin...
 
Eco-Concrete : Opportunities and Challenges
Eco-Concrete : Opportunities and ChallengesEco-Concrete : Opportunities and Challenges
Eco-Concrete : Opportunities and Challenges
 

Similar to How to modernise WPF and Windows Forms applications with Windows Apps SDK

Windows Phone 8 - 1 Introducing Windows Phone 8 Development
Windows Phone 8 - 1 Introducing Windows Phone 8 DevelopmentWindows Phone 8 - 1 Introducing Windows Phone 8 Development
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
Oliver Scheer
 
Microsoft xamarin-experience
Microsoft xamarin-experienceMicrosoft xamarin-experience
Microsoft xamarin-experience
Xpand IT
 
Cloudy with a Dash of Universal Apps
Cloudy with a Dash of Universal AppsCloudy with a Dash of Universal Apps
Cloudy with a Dash of Universal Apps
Shahed Chowdhuri
 

Similar to How to modernise WPF and Windows Forms applications with Windows Apps SDK (20)

Xe OneDay - Modernizing Enterprise Apps
Xe OneDay - Modernizing Enterprise AppsXe OneDay - Modernizing Enterprise Apps
Xe OneDay - Modernizing Enterprise Apps
 
.NET Conf 2021 - Hot Topics Desktop Development
.NET Conf 2021 - Hot Topics Desktop Development.NET Conf 2021 - Hot Topics Desktop Development
.NET Conf 2021 - Hot Topics Desktop Development
 
Developing Windows 10 Hosted Web Apps
Developing Windows 10 Hosted Web AppsDeveloping Windows 10 Hosted Web Apps
Developing Windows 10 Hosted Web Apps
 
.NET Conf 2020 - Hot Topics Desktop Development
.NET Conf 2020 - Hot Topics Desktop Development.NET Conf 2020 - Hot Topics Desktop Development
.NET Conf 2020 - Hot Topics Desktop Development
 
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
Windows Phone 8 - 1 Introducing Windows Phone 8 DevelopmentWindows Phone 8 - 1 Introducing Windows Phone 8 Development
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
 
Windows Phone 8 - introducing wp8 development
Windows Phone 8 - introducing wp8 developmentWindows Phone 8 - introducing wp8 development
Windows Phone 8 - introducing wp8 development
 
(WPF + WinForms) * .NET Core = Modern Desktop
(WPF + WinForms) * .NET Core = Modern Desktop(WPF + WinForms) * .NET Core = Modern Desktop
(WPF + WinForms) * .NET Core = Modern Desktop
 
Building Universal Windows Apps for Smartphones and Tablets with XAML & C#
Building Universal Windows Apps for Smartphones and Tablets with XAML & C#Building Universal Windows Apps for Smartphones and Tablets with XAML & C#
Building Universal Windows Apps for Smartphones and Tablets with XAML & C#
 
Presentation[1]
Presentation[1]Presentation[1]
Presentation[1]
 
Microsoft xamarin-experience
Microsoft xamarin-experienceMicrosoft xamarin-experience
Microsoft xamarin-experience
 
Windows Universal Apps
Windows Universal AppsWindows Universal Apps
Windows Universal Apps
 
Build Your First iPhone or Android App with Telerik AppBuilder
Build Your First iPhone or Android App with Telerik AppBuilderBuild Your First iPhone or Android App with Telerik AppBuilder
Build Your First iPhone or Android App with Telerik AppBuilder
 
Bienvenido .Net MAUI - la evolución de Xamarin.Forms
Bienvenido .Net MAUI - la evolución de Xamarin.FormsBienvenido .Net MAUI - la evolución de Xamarin.Forms
Bienvenido .Net MAUI - la evolución de Xamarin.Forms
 
Desktop Bridge with WPF - One way to build modern apps with WPF
Desktop Bridge with WPF - One way to build modern apps with WPFDesktop Bridge with WPF - One way to build modern apps with WPF
Desktop Bridge with WPF - One way to build modern apps with WPF
 
What's new in Visual Studio for Mac for .NET Developers
What's new in Visual Studio for Mac for .NET DevelopersWhat's new in Visual Studio for Mac for .NET Developers
What's new in Visual Studio for Mac for .NET Developers
 
Cloudy with a Dash of Universal Apps
Cloudy with a Dash of Universal AppsCloudy with a Dash of Universal Apps
Cloudy with a Dash of Universal Apps
 
Windows Phone Introduction
Windows Phone IntroductionWindows Phone Introduction
Windows Phone Introduction
 
Windows 8 App and Game Development Landscape
Windows 8 App and Game Development LandscapeWindows 8 App and Game Development Landscape
Windows 8 App and Game Development Landscape
 
Windows 10 pentru dezvoltatori - InfoEducație 2015
Windows 10 pentru dezvoltatori - InfoEducație 2015Windows 10 pentru dezvoltatori - InfoEducație 2015
Windows 10 pentru dezvoltatori - InfoEducație 2015
 
What's new in Blend for Visual Studio 2015
What's new in Blend for Visual Studio 2015What's new in Blend for Visual Studio 2015
What's new in Blend for Visual Studio 2015
 

More from Mirco Vanini

More from Mirco Vanini (20)

.NET 7 Performance Improvements_10_03_2023.pdf
.NET 7 Performance Improvements_10_03_2023.pdf.NET 7 Performance Improvements_10_03_2023.pdf
.NET 7 Performance Improvements_10_03_2023.pdf
 
Debugging a .NET program after crash (Post-mortem debugging)
Debugging a .NET program after crash (Post-mortem debugging)Debugging a .NET program after crash (Post-mortem debugging)
Debugging a .NET program after crash (Post-mortem debugging)
 
Connect a chips to Azure
Connect a chips to AzureConnect a chips to Azure
Connect a chips to Azure
 
Connect a chips to Azure
Connect a chips to AzureConnect a chips to Azure
Connect a chips to Azure
 
C# on a CHIPs
C# on a CHIPsC# on a CHIPs
C# on a CHIPs
 
Async Debugging A Practical Guide to survive !
Async Debugging A Practical Guide to survive !Async Debugging A Practical Guide to survive !
Async Debugging A Practical Guide to survive !
 
IoT support for .NET (Core/5/6)
IoT support for .NET (Core/5/6)IoT support for .NET (Core/5/6)
IoT support for .NET (Core/5/6)
 
Async Debugging - A Practical Guide to survive !
Async Debugging - A Practical Guide to survive !Async Debugging - A Practical Guide to survive !
Async Debugging - A Practical Guide to survive !
 
IoT support for .NET Core
IoT support for .NET CoreIoT support for .NET Core
IoT support for .NET Core
 
IoT support for .NET Core - IoT Saturday 2020
IoT support for .NET Core - IoT Saturday 2020IoT support for .NET Core - IoT Saturday 2020
IoT support for .NET Core - IoT Saturday 2020
 
Are you ready for Microsoft Azure Sphere?
Are you ready for Microsoft Azure Sphere?Are you ready for Microsoft Azure Sphere?
Are you ready for Microsoft Azure Sphere?
 
IoT Day 2019 Naples - Microsoft Azure Shpere
IoT Day 2019 Naples - Microsoft Azure ShpereIoT Day 2019 Naples - Microsoft Azure Shpere
IoT Day 2019 Naples - Microsoft Azure Shpere
 
Debugging with VS2019
Debugging with VS2019Debugging with VS2019
Debugging with VS2019
 
Azure Sphere
Azure SphereAzure Sphere
Azure Sphere
 
Optimising code using Span<T>
Optimising code using Span<T>Optimising code using Span<T>
Optimising code using Span<T>
 
Azure Sphere
Azure SphereAzure Sphere
Azure Sphere
 
Azure Sphere - GAB 2019
Azure Sphere - GAB 2019Azure Sphere - GAB 2019
Azure Sphere - GAB 2019
 
IoT Day - Introducing Azure Sphere
IoT Day -  Introducing Azure SphereIoT Day -  Introducing Azure Sphere
IoT Day - Introducing Azure Sphere
 
Introducing Azure Sphere
Introducing Azure SphereIntroducing Azure Sphere
Introducing Azure Sphere
 
Debugger Tips and Tricks for .Net developers with Microsoft Visual Studio 2017
Debugger Tips and Tricks for .Net developers with Microsoft Visual Studio 2017 Debugger Tips and Tricks for .Net developers with Microsoft Visual Studio 2017
Debugger Tips and Tricks for .Net developers with Microsoft Visual Studio 2017
 

Recently uploaded

Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
drm1699
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 

Recently uploaded (20)

Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
 
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
 
From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptxFrom Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
 
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
GraphSummit Milan & Stockholm - Neo4j: The Art of the Possible with Graph
GraphSummit Milan & Stockholm - Neo4j: The Art of the Possible with GraphGraphSummit Milan & Stockholm - Neo4j: The Art of the Possible with Graph
GraphSummit Milan & Stockholm - Neo4j: The Art of the Possible with Graph
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
 
The Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationThe Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test Automation
 
Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
 
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 

How to modernise WPF and Windows Forms applications with Windows Apps SDK

  • 1. xedotnet.org How to modernise WPF and Windows Forms applications with Windows Apps SDK Mirco Vanini @MircoVanini
  • 2. • Windows Form | aka WinForms • Windows Presentation Fondation | aka WPF • Universal Windows Platform | aka UWP * • Windows UI | aka WinUI • .NET Multi-Platform Application UI | aka MAUI • Blazor Desktop • Windows App SDK Desktop Technologies * Microsoft stirred up some debate with its recent announcement that ".NET 5/6 Will Not Be Coming to UWP Project Types," which many decried as a further deprecation of UWP on the part of the company.
  • 4. • Support to latest tooling and C# features • Core runtime and API improvements • Performance • Deploy • Side by side • Machine global or app local framework • Self conteined EXEs Desktop Application .NET 6
  • 5. • WPF and Windows Forms supported as first-class citizens in .NET • Improved Designer Support (both WinForms and XAML) • Improved ClickOnce Support • Improved performance and reliability • Accessibility improvements • Quick Actions • XAML Hot Reload Improvements (WPF /WinUI) • Hot Reload • IntelliSense Improvements Windows Development
  • 6. • Use the new TFM dedicated to Windows to light up most of the APIs and features from Universal Window Platform • Easily integrate notification, geolocation, Windows Hello, Bluetooth, Low Energy, … <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net6.0-windows10.0.22000.0</TargetFramework> <Nullable>enable</Nullable> <UseWPF>true</UseWPF> </PropertyGroup> </Project> Windows 10 integration
  • 7. • .NET aims to re-introduce the experience of publishing small, self-contained version of applications • Across all .NET application formats (Windows, Web,…) • Across all the platforms (Windows, Mac, Linux) • Required Framework components are included in the deployment • True xcopy-enabled, single-file executables • Assembly Trimming • .NET has come a long way for this Single File Applications
  • 8. • New Edge-Chromium-based HTML control • Available in Windows Forms, WPF • .NET Framework, .NET Core 3.x, and .NET 5/6 • Windows 7 and later • Evergreen (updated every 6 weeks) • WebView2 Evergreen is now a Windows component WebView2
  • 9. • .NET has many performance and size optimizations specifically driven by support for ARM chips • ARM chips are very popular in phones, but they are also becoming more popular in laptops • Surface Pro X is ARM-based • Apple has announced that their Apple Silicon-based Macs will be ARM based • IoT devices are often based on ARM chips • Raspberry Pi 3 & 4 are ARM-based ARM64
  • 10. • Improvement to in-app toolbar • Inline color previews • Design Time Data https://docs.microsoft.com/visualstudio/xaml-tools/xaml-designtime-data • Refresh designer button • Suggested Actions • XAML Hot Reload • XAML Binding Failures • New Designer for .NET FW apps • XAML Live Preview ! New features in XAML Tooling
  • 11. • Reduce time and difficulty modernizing older .NET codebases • Helps to analyze and upgrade older codebases • Understands dependencies • Provides guidance and assistance • Multiple project types supported Learn more | https://aka.ms/dotnet-upgrade-assistant .NET Upgrade Assistant
  • 12. • Support new hardware • Modern use experience • App deploy and management • Reliability, security, privacy • System performance and battery life Making app great for people who use them … but starting where you are • Compatibility with all you code (WinForm, WPF, UWP, MFC) • Support for existing packaging and deployment • Features that work across users’ version of Windows 10/11
  • 13. • This is the former “Project Reunion” • Re-unification of various Windows/Desktop UI technologies • WinForms, WPF, UWP, WinUI, Xamarin Windows App SDK The Windows App SDK is a set of new developer components and tools that represent the next evolution in the Windows app development platform. The Windows App SDK provides a unified set of APIs and tools that can be used in a consistent way by any desktop app on Windows 11 and down- level to Windows 10, version 1809. The Windows App SDK does not replace the Windows SDK or existing desktop Windows app types such as .NET (including Windows Forms and WPF) and desktop Win32 with C++. Instead, the Windows App SDK complements these existing tools and app types with a common set of APIs that developers can rely on across these platforms. 1709 1803 1809 1903 1909 2004 Win11 2018 2019 2020 2021
  • 14. Windows App SDK App type 1.0 1.1 (Q2 2022) Desktop apps (WinUI 3, WPF, etc) ✅ WinUI 3** ✅ Text rendering ✅ Resource management ✅ App lifecycle ✅ Windowing 🔁 Push Notifications ✅ WinUI 3** ✅ Text rendering ✅ Resource management ✅ App lifecycle ✅ Windowing ✅ Push Notifications ✅ Multiple windows ✅ Elevation support ✅ Local toast notifications ✅ Environmental variables API ✅ Restart API ✅ Self-contained deployment ✅ Supported | 🔁 Experimental ** - WinUI 3 in 1.0 and 1.1 is only supported for use by full WinUI 3 apps. You'll be able to use WinUI 3 in WPF/WinForms/other apps in a future release via XAML Islands.
  • 15. WinUI 3 • Continuation of WinRT, XAML Islands,… • Windows 10/11 only WinUI 3 is the next generation of the WinUI framework. It dramatically expands WinUI into a full UX framework, making WinUI available for all types of Windows apps – from Win32 to UWP – for use as the UI layer.
  • 16. • The .NET team is working on next-generation cross-platform framework for C# developers, called MAUI (Multi App User Interface) • Use .NET and C# to build application for iOS, Android, MacOS and Windows • Share business logic and UI • WinUI and Windows App SDK is the target framework for Windows Windows Apps SDK and cross-platform apps
  • 17. Demo
  • 18. • Windows Apps SDK SDK doesn’t include only WinUI, but other features that can be integrated in existing Win32 apps: • Resource manager • Activation APIs • Windowing APIs • Text rendering • Push notification Windows Apps SDK, ther is more...
  • 19. • Supporto also in Win32 apps the rich activation system introduced in the universal Windows Platofrm like file, protocol, statup task, pickers, etc. • Enables the usage oa the AppInstance class to manage single- instance apps and multi-instanced apps • It enables advanced redirection scenarios, like working in single instance mode, but switching to multi-instance if the application is activated from file Windows Apps SDK – Activation APIs
  • 20. • New AppWindow API which acts as a high-level implementation of HWND • Lot of customization options for your windows: • Customize the title bar • Use a custom title bar based on XAML • Support full screen and compact overlay Windows Apps SDK – Windows management APIs
  • 21. Q&A .NET your platform for building anything Mirco Vanini Microsoft® MVP Windows Development myContactInfo: { ”e-mail”:“mirco.vanini@proxsoft.it”, “web”: “www.proxsoft.it”, “twitter”: “@MircoVanini” }