You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose a new feature that integrates Dependency Injection (DI) directly into pages to facilitate smoother interaction with the NavigationService and to enable the seamless passing of various types of parameters between pages. This could include anything from record IDs to custom service implementations.
Motivation
The main goal of this feature is to enhance the usability of the NavigationService by leveraging DI, thus simplifying the process of parameter passing and service management during navigation. This approach would make it more convenient to work with complex dependencies and parameters within our navigation framework.
Proposed Solution
Implement a Navigation Frame that incorporates DI to allow for:
Direct injection of services into pages.
Easy parameter passing between pages with support for various data types.
Implementation Details
Here is a preliminary example of how this can be implemented in WinUI 3 and .NET 8:
(to build the project, please use the *.nupkg files located in the root of the archive)
Hi @dzhukovsky
Thank you for your request.
Sorry for the late reply, I tested your project but I didn't have enough time to review it.
I'm a little busy these days and I'm just making simple and small changes.
Therefore, If you would like to send a PR, I will check it when I have free time🙏
Description
I would like to propose a new feature that integrates Dependency Injection (DI) directly into pages to facilitate smoother interaction with the NavigationService and to enable the seamless passing of various types of parameters between pages. This could include anything from record IDs to custom service implementations.
Motivation
The main goal of this feature is to enhance the usability of the NavigationService by leveraging DI, thus simplifying the process of parameter passing and service management during navigation. This approach would make it more convenient to work with complex dependencies and parameters within our navigation framework.
Proposed Solution
Implement a Navigation Frame that incorporates DI to allow for:
Implementation Details
Here is a preliminary example of how this can be implemented in WinUI 3 and .NET 8:
(to build the project, please use the
*.nupkg
files located in the root of the archive)DemoApp.zip
The text was updated successfully, but these errors were encountered: