SimpleStackPanel can't be displayed as expected
Describe the bug
use multi ikw:SimpleStackPanel and ui:ItemsRepeater together doesn't work fine. the auto displayed height is not enough.
use single ikw:SimpleStackPanel and ui:ItemsRepeater together work fine.
Use StackPanel and ui:ItemsRepeater together work fine.
Reproduction
sorry, I can't upload any file in company, xaml code like this:
<ikw:SimpleStackPanel Orientation="Vertical"> <TextBlock Text="{Binding Description}" /> <Border> <ikw:SimpleStackPanel Orientation="Vertical">
<ui:ItemsRepeater Grid.IsSharedSizeScope="True"
ItemsSource="{Binding FieldList}" >
<ui:ItemsRepeater.ItemTemplate>
<DataTemplate>
<Grid Visibility="{Binding UIVisible, Converter={StaticResource boolToVisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="control_field_desc" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" Margin="0,1,15,1" Text="{Binding Description}" />
</Grid>
</DataTemplate>
</ui:ItemsRepeater.ItemTemplate>
<ui:ItemsRepeater.Layout>
<ui:StackLayout Orientation="Vertical" Spacing="0" />
</ui:ItemsRepeater.Layout>
</ui:ItemsRepeater>
<Grid Visibility="{Binding StringField.UIVisible, Converter={StaticResource boolToVisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="control_field_desc" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" Margin="0,1,15,1" Text="{Binding StringField.Description}" />
</Grid>
</ikw:SimpleStackPanel>
</Border>
</ikw:SimpleStackPanel>
Suggested Solution
No response
Library Version
iNkore.ui.wpf.Modern 0.10.1; iNkore.ui.wpf:1.2.8
Operating System
Windows 10
Framework
.NET Framework
Framework Version
6.0
Source of Package
NuGet.org (Package)
Additional Notes
No response
Validations
- [x] Check that there isn't already an issue that reports the same or similar problem.
- [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
- [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
- [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
- [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
- [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)
oh, it happened again, not because the SimpleStackPanel or ItemsRepeater, i am not sure what cause the problem.
I used ScrollViewEx SimpleStackPanel ItemsRepeater.
just now, I replace all ScrollViewEx SimpleStackPanel ItemsRepeater to ScrollView StackPanel ItemsControl, It is resolved
What do you exact mean "multi SimplrStsckPanel" here? Also please provide a working & reproducible minimal example project (either through uploading a zip or creating a repo) so that I can look into this.
@NotYoojun please clone this code. https://github.com/LickBag/UI.WPF.Modern.Demo.git
In this demo, left radio button to change the datasource, middle use ui.wpf.modern, right use the wpf default panel. middle and right have the same layout and binding