SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
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”
}

Contenu connexe

Tendances

Tendances (20)

Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
NET Conf Bhubaneswar - Migrating your Xamarin.Forms app to .NET MAUI.pptx
NET Conf Bhubaneswar - Migrating your Xamarin.Forms app to .NET MAUI.pptxNET Conf Bhubaneswar - Migrating your Xamarin.Forms app to .NET MAUI.pptx
NET Conf Bhubaneswar - Migrating your Xamarin.Forms app to .NET MAUI.pptx
 
JEE Course - JEE Overview
JEE Course - JEE  OverviewJEE Course - JEE  Overview
JEE Course - JEE Overview
 
From Zero to Docker
From Zero to DockerFrom Zero to Docker
From Zero to Docker
 
Testing Spring Applications
Testing Spring ApplicationsTesting Spring Applications
Testing Spring Applications
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
Dot Net Core
Dot Net CoreDot Net Core
Dot Net Core
 
Angular material
Angular materialAngular material
Angular material
 
WebSphere Application Server
WebSphere Application ServerWebSphere Application Server
WebSphere Application Server
 
.Net framework vs .net core a complete comparison
.Net framework vs .net core  a complete comparison.Net framework vs .net core  a complete comparison
.Net framework vs .net core a complete comparison
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Junit
JunitJunit
Junit
 
Object Oriented Programming In JavaScript
Object Oriented Programming In JavaScriptObject Oriented Programming In JavaScript
Object Oriented Programming In JavaScript
 
C# - Part 1
C# - Part 1C# - Part 1
C# - Part 1
 
Microservices Tutorial for Beginners | Microservices Architecture | Microserv...
Microservices Tutorial for Beginners | Microservices Architecture | Microserv...Microservices Tutorial for Beginners | Microservices Architecture | Microserv...
Microservices Tutorial for Beginners | Microservices Architecture | Microserv...
 
Setting Up CircleCI Workflows for Your Salesforce Apps
Setting Up CircleCI Workflows for Your Salesforce AppsSetting Up CircleCI Workflows for Your Salesforce Apps
Setting Up CircleCI Workflows for Your Salesforce Apps
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Spring: Overview do framework mais popular para desenvolvimento em Java
Spring: Overview do framework mais popular para desenvolvimento em JavaSpring: Overview do framework mais popular para desenvolvimento em Java
Spring: Overview do framework mais popular para desenvolvimento em Java
 
Api testing bible using postman
Api testing bible using postmanApi testing bible using postman
Api testing bible using postman
 

Similaire à 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
 

Similaire à 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
 

Plus de Mirco Vanini

Plus de 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
 

Dernier

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 

Dernier (20)

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 

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” }