Replies: 4 comments 4 replies
-
Proof of concept: This seems to work well. Only adapted pages Color/Text, ButtonPage and IconographyPage for simplicity. https://github.com/Jay-o-Way/WinUI-Gallery/tree/refactor-ItemPage Note At the moment, the change means <TextBlock x:Name="descriptionText" ...> falls outside of the ScrollViewer. Also note that the use of this textblock is inconsistent. Four out of five pages under "Design" have a description on the Page itself. This makes me think it any description might as well be "hard-coded" on any page, removing the need for this textblock (in ItemsPage.xaml) and making the description scroll with the rest of the page. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm trying to understand the main benefit of doing this? Moving scrollviewers to sample pages is a lot of work and I'm a bit worried that it might make things harder to maintain? |
Beta Was this translation helpful? Give feedback.
-
A few screenshots from my concept (at this moment of writing) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Situation
The current structure of ItemPage and all the "specific" pages is...interesting?
Note that
contentRoot
Padding disregards the fact that a page may have a scroll viewer, which must be able to stretch to the sides. And then ItemPage.xaml.cs has the following comment:WinUI-Gallery/WinUIGallery/Pages/ItemPage.xaml.cs
Lines 77 to 78 in 297974e
The ScrollViewer should be moved out of ItemPage.xaml to the content pages of
contentFrame
. I know this will be a lot of work, but it really is for the best.Suggestions
ItemPage.xaml:
Style:
On every Page:
Note that some pages, like Iconography, already deal with scrolling as-is.
Beta Was this translation helpful? Give feedback.
All reactions