You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I´m using a ScrollViewer inside the content area of an Expander.
The available space for the expander itself is limited by a Grid.
If the Expanders content grows, the ScrollViewer should become active.
When using WPF-UI, the ScrollViewer does not get active an the content ist cut off.
To Reproduce
Here is the code to reproduce the Problem:
The MainWindow.xaml
<Windowx:Class="ExpanderSample.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:local="clr-namespace:ExpanderSample"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"Title="MainWindow"Width="800"Height="250"mc:Ignorable="d">
<GridMargin="10">
<ExpanderVerticalAlignment="Top"Header="The expander problem description"IsExpanded="True">
<Expander.Content>
<Grid>
<ScrollViewer>
<TextBlockMargin="10">
When I start<LineBreak />
to write<LineBreak />
some longer text<LineBreak />
and I use<LineBreak />
WPF-UI<LineBreak />
the Expander<LineBreak />
starts to<LineBreak />
grow<LineBreak />
outside<LineBreak />
the grid<LineBreak />
area.<LineBreak />
Then the Scrollviewer<LineBreak />
does not work anymore<LineBreak />
🥺</TextBlock>
</ScrollViewer>
</Grid>
</Expander.Content>
</Expander>
</Grid>
</Window>
To reproduce the error just copy that code into a new WPF application.
When you delete the activation of WFP-UI in the App.xamls ResourceDictionary you can test the expected behavior in plain WPF.
Expected behavior
I expect the content of the ScrollViewer to scroll like it does in plain WPF.
Screenshots
Without WPF-UI the ScrollViewer is doing it´s job:
With WPF-UI it´s not possible to scroll:
OS version
Windows 11 Enterprise
23H2
.NET version
.NET 8
WPF-UI NuGet version
3.0.4
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I´m using a
ScrollViewer
inside the content area of anExpander
.The available space for the expander itself is limited by a
Grid
.If the
Expander
s content grows, theScrollViewer
should become active.When using WPF-UI, the
ScrollViewer
does not get active an the content ist cut off.To Reproduce
Here is the code to reproduce the Problem:
The MainWindow.xaml
The App.xaml
To reproduce the error just copy that code into a new WPF application.
When you delete the activation of
WFP-UI
in theApp.xaml
s ResourceDictionary you can test the expected behavior in plain WPF.Expected behavior
I expect the content of the
ScrollViewer
to scroll like it does in plain WPF.Screenshots
Without
WPF-UI
theScrollViewer
is doing it´s job:With
WPF-UI
it´s not possible to scroll:OS version
Windows 11 Enterprise
23H2
.NET version
.NET 8
WPF-UI NuGet version
3.0.4
Additional context
No response
The text was updated successfully, but these errors were encountered: