Open SlimeNull opened 7 months ago
This is needed if it isn't already implemented. If someone has a workaround please let me know.
This is needed if it isn't already implemented. If someone has a workaround please let me know.
I'm now using version 2.1.0 of the WPF-UI package, and even though it's already marked as "deprecated", because the different parts of its NavigationView control are separated, I can just use its "NavigationStore" and then place the Frame control myself.
This solved my problem for the time being ...
It's not the NavigationView
that has ScrollViewer
, but a Page
. Take a look at
https://github.com/lepoco/wpfui/blob/main/src/Wpf.Ui.Gallery/Views/Pages/DesignGuidance/IconsPage.xaml
But, the default value of ScrollViewer.CanContentScroll
seems to be "False", why the page become scrollable?
Here is the defination of ScrollViewer.CanContentScrollProperty
: ScrollViewer - source.dot.net
Well i dont know why, i had the same issue, but setting ScrollViewer.CanContentScroll
to False
on the Page
do work.
I also think that Should be provided IsDynamicScrollViewerEnabled property in the NavigationView, in order to control whether to use DynamicScrollViewer in NavigationViewContentPresenter
Describe the bug
In my page, there is an area, its height is adaptive, and the content is with ScrollViewer, as long as the page is limited to the frame of the NavigationView, instead of being free to get bigger, this set of layouts works, however, because NavigationView has a built-in ScrollViewer, this causes the height of my Page to no longer be limited, but to become very high, So my whole page became scrollable, but in my expectation, the only area that could be scrolled was a part of the ScrollViewer that I put in
To Reproduce
The layout of the page can look like this:
Expected behavior
Allows the user to remove the ScrollViewer from the NavigationView so that the Page is non-scrollable
Screenshots
The messages area should be scrollable.
However, the message area does not appear as a scroll bar, and the entire page becomes scrollable
OS version
Windows 11 23H2 (22631.3296)
.NET version
8.0.203
WPF-UI NuGet version
3.0.3
Additional context
No response