-
-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Stride.Core.Presentation cross-platform #2082
Make Stride.Core.Presentation cross-platform #2082
Conversation
UI-agnostic and cross-platform
Rename previous IDialogService to IDialogService2
...Presentation/AssetEditors/EntityHierarchyEditor/ViewModels/EntityHierarchyEditorViewModel.cs
Outdated
Show resolved
Hide resolved
15604d2
to
6b7c7ef
Compare
And move it to IDialogService
6b7c7ef
to
827ce0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
sources/presentation/Stride.Core.Presentation/Services/IDialogService.cs
Show resolved
Hide resolved
sources/presentation/Stride.Core.Presentation/Stride.Core.Presentation.csproj
Show resolved
Hide resolved
Quite impresive work, LGTM, but I would like to add few comments 😅 |
sources/assets/Stride.Core.Assets.CompilerApp/build/Stride.Core.Assets.CompilerApp.targets
Show resolved
Hide resolved
sources/assets/Stride.Core.Assets.CompilerApp/Stride.Core.Assets.CompilerApp.csproj
Show resolved
Hide resolved
@Eideren @Jklawreszuk ok to merge? I added two commits to get IDialogService closer to describing the service in a xplat way. The signature of most methods follow closely Avalonia's implementation, which can explain why the current WPF's implementation is a bit clumsy. |
Thanks ! |
PR Details
Description
Make
Stride.Core.Presentation
cross-platform and UI-agnostic (albeit still dependent on the MVVM pattern), and move Windows/WPF-specific code toStride.Core.Presentation.Wpf
.In addition, a few other libraries now target
net-8.0
instead of.net-8.0-windows7.0
.Bonus point: the code in
Stride.Core.Presentation
is modernized with implicit usings and nullable reference support.Related Issue
Partially based on #2034, which will be rebased on top of this PR once merged.
Motivation and Context
Mostly code reuse.
Also, the launcher has much less dependencies on WPF than the other editor libraries. With that change, it should be possible to start porting it to Avalonia with minimal effort, and independently from the rewrite.
Types of changes
Checklist