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 15, 2024
1 parent 2619a96 commit e30988a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set version number
shell: pwsh
run: |
$version = "0.0.7"
$version = "0.0.8"
echo $version
echo "VERSION_NUMBER=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- uses: actions/checkout@v4
Expand Down
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 e30988a

Please sign in to comment.