-
Notifications
You must be signed in to change notification settings - Fork 80
Niels9001/DocumentRender UX update pt1 #162
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
Conversation
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml
Outdated
Show resolved
Hide resolved
|
@niels9001 added comment for at least one thing causing the build to fail (unsupported property from uno, so just needs a guard prefix). Also you'll need to rebase the branch to get the header updates from main. |
e940e4f to
5001319
Compare
|
@niels9001 the Though not supported on Uno. I know we use @jeromelaban is there another special one for stuff that's specific to WinUI 2/3 from muxc? That's not called out in the doc specifically. Or could/would we use an |
|
@michael-hawker Actually, I think with WinUI 3 this API is not supported and requires code behind (and will only work on W11, not on W10.. Shall I leave it out for now? I guess in the future we need some sort of helper class that uses the right API when on WAS vs. UWP. |
|
Thanks @niels9001, I did just follow-up on this, the approach with WinUI 3 is all different for now still yes: MicrosoftDocs/winui-api#121 (comment) Let's leave the Mica out for now as you've done and we can evaluate an approach for that later either with a polyfill or helper or something else. |
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml
Outdated
Show resolved
Hide resolved
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitSampleRenderer.xaml
Outdated
Show resolved
Hide resolved
|
Tried out on the web in Codespaces and noticed some issues: Looks like the metadata isn't getting bound for some reason in the header? This is probably because of unoplatform/uno#2872 - So just switch the bindings to Also, the C# source code is centered compared to the XAML (so switching between the C#/XAML tabs is causing the text to jump around). Not sure what that may be. The only difference is that it's in an Expander now, eh? So it may be the HorizontalContentAlignment somewhere? |
Fixed! Metadata now correctly loading and the Pivot not stretches, so its content is now left aligned. There are some minor visual glitches (e.g. not all icons are correctly loading and seem to occosianlly load MDL2 instead of Fluent Icons. Also the ComboBox does not default to the first item (SelectedIndex=0, but maybe small things we can fix later on? |
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml.cs
Outdated
Show resolved
Hide resolved
|
@niels9001 looking good in Codespaces now (outside of Uno issue unoplatform/uno#4686) However, I noticed in the TabbedPage view when running experiments that the source code expander isn't visible: (I like that it fills up the whole app area by default, but think we need a scrollviewer or something around it. (This was just running the UWP head from the CanvasLayout.sln.) You can see it becomes a bit of an issue when you shrink the app window size too: |
michael-hawker
left a comment
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.
Pointed out spots for fixing the issues with the TabbedPage experience. Let me know your thoughts and what you want to tackle now vs. opening an issue for (build conditional to hide header type thing).
Also, don't forget to rebase off main as all the global usings are resolved there.
| Text="See the docs" /> | ||
| </StackPanel> | ||
| </Button> | ||
| <Button Grid.Column="1" |
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.
This seemed clipped on the right-hand side?
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.
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.
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml
Show resolved
Hide resolved
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml
Show resolved
Hide resolved
common/CommunityToolkit.Labs.Shared/Renderers/ToolkitDocumentationRenderer.xaml
Show resolved
Hide resolved
|
Also should the samples themselves be left-aligned vs. centered? |
Yeah, good suggestion - looks a bit cleaner. Left aligned now! |
3be691a to
d3c6765
Compare
michael-hawker
left a comment
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.
Looking good! Will merge now and we have a couple of small things to continue to improve and work on later, for instance #169.
* Overall layout, adding styles * Add resizing logic and sample combobox * Layout changes to documentrenderer * Item rename * Fix responsiveness * Margin fix * XAML formatting * XAML formatting * Catch Uno exception * Updated Heading * XAML formatting * Fix * Removed mica * XAML formatting * XAML formatting * XAML formatting * XAML formatting * Feedback * Responsize SampleOptions layout * UI fixes for Uno * Add margin to TabbedPage * Remove redundant code * Add SubtleButtonStyle * XAML formatting * Added visual state and left aligned samples * Added ScrollViewer for samples on tabbed pages * Removed brushtransition * Uno fix






Porting over some changes from the UX exploration to the Sample Gallery.
Things to consider: