Repository navigation
Add StatusCenter - #232
Add StatusCenter#232
Conversation
…tusCenter # Conflicts: # dev/DevWinUI/Controls/Win2DAndComposition/SpeedGraph2/SpeedGraph2.cs
… with keyboard accelerator instead of AccessKey
|
@tinodin, thank you for your work. I’ve taken a look at it, and unfortunately, there are some serious issues. There are several NuGet dependencies that I don't want to introduce, changes to SpeedGraph in an unrelated PR, ViewModel, and so on. Overall, the changes are quite messy and need some cleanup. I may close this PR and start a clean implementation based on your work. Alternatively, if you're already working on a revised version, please let me know. |
|
@ghost1372 I knew that the new Nuget packages would maybe be a concern for you. Can you explain how you would like those to be handled and why? ByteSize can be removed alongside the property for size unit. CsWinRT can be removed after removing the [DynamicWindowsRuntimeCast] - the control works fine without those. I don't see any issues for using other CommunityToolkit packages especially since those are really useful and required for advanced controls. "Unrelated changes":
Could you explain what you mean by ViewModel? The control needs its own ViewModel in order to keep its state across the app, there is no other solution and it is what Files does as well. Other than those changes there is no cleanup / rewrite to make, I made sure that all the ported code remains the same to the original. The parts that are not needed have been isolated and removed. I do not recommend you starting clean under any circumstances. Please let me know. |
Some of these dependencies can be replaced with our existing helpers, such as CSWinRT is only being used for As for CommunityToolkit, it only increases the package size, and I don't want to introduce it as a dependency for a single control. They tend to be slow with updates, and we could run into compatibility issues whenever there's a major update, such as a new SDK release. I've experienced this before, where we ended up being blocked until they updated their packages. So I'd rather avoid that dependency altogether. I'm fine with using SpeedGraph in StatusCenter, but I'd prefer to track it in a separate PR. That way, we can review and handle any potential issues independently without affecting the main implementation. One more thing: I noticed that you're exposing the ViewModel class and requiring users to interact with it to make the control work. Instead, we should implement this as a Also, there are a few other issues worth addressing, such as the following, We don't need this; our XamlTools already handles it automatically: |
Yes it can be done, should I change it (but it would require modifying FileHelper.cs to support binary units ca. 20 lines).
Yep.
Fair enough although the size difference would be negligible. The converters used already exist locally the other packages can be replaced as well. Personally I think CommunityToolkit.Mvvm is great but alright.
I saw you modified it recently to make resizing work. It was essentially ported from files too, without the license header (you may wanna add it). I think it wouldn't make sense to open a separate PR just for it because its a single file and finishing StatusCenter without it would not make sense as you would have no way easy way to verify the theme changing works. I have looked into other approaches to make it work but all of them made kind of no sense.
Thanks for that tip, I will look into it.
Only |
|
I’ve cleaned up most of it, but there are still a few issues. You can take it from here! :) |
|
@ghost1372 The actions don't seem to work at all. It also crashes. |
|
I know the build times are long but I would not recommend using a test app project. Especially since this changed all of the code. You won't match the original design ever. 👎 |
|
Yes, it has some issues, but it's a starting point. I always work this way :) It's faster, and I'll polish and finalize everything in the end. All controls are created this way. Don't worry about the styles; I'll rename those ToggleSwitch resources so nothing breaks. |
|
The issue is not that its a test app project, it's that you started from scratch essentially. That's why there are all these issues. I won't work at this (its too much work for nothing, too time consuming). I will be happy to fix all your concerns with the code I had worked on for weeks. |
Actually, it's your code that I modified. Ok, that's fair enough. There's no rush anyway. I'll wait. |
|
Any updates @ghost1372 ? |
I requested a few changes 3 days ago, so I'm waiting for your fixes. Didn't you receive the review request?
|
|
@ghost1372 I indeed can't see them. You have to submit the review I think. |
|
@tinodin Sorry, it's because of GitHub's stupid new overview page. I didn't notice that button until now.
|
|
@tinodin can you confirm you can see requests? |
|
Thank you @tinodin |


Original port from Files.
Features / Changes:
Corresponding documentation here:
ghost1372/ghost1372.github.io#39