Open niels9001 opened 1 year ago
@niels9001 originally we did a big push in 7.0 to flatten the namespace and remove 'extensions' so they were all consistent across the package for easy usage.
Context:
We could have the component/package maybe be called Extensions
if we change the scope of what's inside it, but may want to think about still having a base namespace for some of these things?
@Sergio0694 thoughts?
Heyoooooo I see a new repo πππ
@michael-hawker Yeah, if we went back and added "Extensions" back it'd be a bit weird. FWIW we also don't use "Extensions" in the .NET Community Toolkit.
Looking at the template that Niels copied I think he may have just used Namespace
to mean package/component
name? But will clarify in a quick-sync tomorrow. π
@Sergio0694 @michael-hawker Oh yeah, I basically just replaced the last bit of namespace from the previous template. So please ignore / update π!
Haha, yeah, I guess that line was a bit more specific to the Converters
as they are in their own namespace anyway. (Maybe that's a separate discussion as to if they should remain there.)
Anyway, all good. We'll sort it out and can update these issues all together at our next sync.
Should we have the extensions and helpers together as like a common
folder/component name?
We have some extensions in the base Microsoft.Toolkit.Uwp
package merging those in with the extensions of Microsoft.Toolkit.Uwp.UI
package here.
Then will create a separate Helpers
component I think that contains most of the rest?
Currently have not brought over:
I believe the top two work differently in UWP vs. WinAppSDK, so probably need to look at more closely if it makes sense to have them. Also, I believe @niels9001 has some thoughts about Titlebar helpers in general we should investigate for a revamp, especially with the platform doing work to better enable custom titlebars, see https://github.com/microsoft/microsoft-ui-xaml/discussions/8137
The Middle Click Scrolling extensions are dependent on Windowing APIs, Input APIs, and Cursor APIs, which all work very differently between UWP and Windows App SDK, so not porting for now, as I don't think they work for Windows App SDK at the moment, so probably need more attention.
With WebView2 now, we should figure out if we need to remap these extensions or how that should work.
TODO