Skip to content

Commit

Permalink
switching to ItemsControl as per #3
Browse files Browse the repository at this point in the history
  • Loading branch information
KaddaOK committed Feb 14, 2024
1 parent 2619a96 commit fa1985b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions KaddaOK.AvaloniaApp/Views/EditLinesView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,24 @@
Classes="startSecond"
Content="{Binding StartSecond}"
Grid.Column="1" />
<ItemsRepeater
<ItemsControl
ItemsSource="{Binding Words}"
Grid.Column="2">
<ItemsRepeater.Layout>
<WrapLayout Orientation="Horizontal" />
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
<DataTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button
Classes="wordButton"
Content="{Binding Text}"
Flyout="{StaticResource WordButtonFlyout}"
ContextFlyout="{StaticResource WordButtonFlyout}" />
</DataTemplate>
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Label
Content="{Binding EndSecond}"
HorizontalAlignment="Right"
Expand Down

0 comments on commit fa1985b

Please sign in to comment.