Browse Source

Add scrollviewer to stackcard

pull/165/head
Ionite 1 year ago
parent
commit
7d6810b213
No known key found for this signature in database
  1. 30
      StabilityMatrix.Avalonia/Controls/StackCard.axaml

30
StabilityMatrix.Avalonia/Controls/StackCard.axaml

@ -25,23 +25,25 @@
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}">
<ItemsControl
VerticalAlignment="Top"
ItemsSource="{Binding Cards}">
<ScrollViewer>
<ItemsControl
VerticalAlignment="Top"
ItemsSource="{Binding Cards}">
<ItemsControl.DataTemplates>
<local:ViewLocator/>
</ItemsControl.DataTemplates>
<ItemsControl.DataTemplates>
<local:ViewLocator/>
</ItemsControl.DataTemplates>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel
VerticalAlignment="Top"
Spacing="{TemplateBinding Spacing}"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel
VerticalAlignment="Top"
Spacing="{TemplateBinding Spacing}"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</ItemsControl>
</ScrollViewer>
</controls:Card>
</ControlTemplate>

Loading…
Cancel
Save