Skip to content

Commit f57c0bb

Browse files
committed
sfsd
1 parent 36cde98 commit f57c0bb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

task4.4/Infrastructure/BitmapValueConverter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Avalonia.Media;
77
using Avalonia.Platform;
88

9-
namespace task4._4.Infrastructure;
9+
namespace task44.Infrastructure;
1010

1111
public class BitmapValueConverter : IValueConverter
1212
{

task4.4/Views/MainWindow.axaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:vm="using:task4._4.ViewModels"
44
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6-
xmlns:infrastructure="clr-namespace:task4._4.Infrastructure;assembly=task4._4"
6+
xmlns:infrastructure="clr-namespace:task44.Infrastructure;assembly=task44"
77
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
88
x:Class="task4._4.Views.MainWindow"
99
x:DataType="vm:MainWindowViewModel"
@@ -69,7 +69,7 @@
6969
<StackPanel Orientation="Vertical">
7070
<TextBlock TextAlignment="Left" Margin="0, 0, 0, 15" Text="{Binding Article}"/>
7171
<TextBlock TextWrapping="Wrap" Text="{Binding Text}"/>
72-
<Image Source="{Binding ImagePath, Converter={x:Static infrastructure:BitmapValueConverter.Instance}}" Height="320" Width="280" HorizontalAlignment="Center" />
72+
7373
</StackPanel>
7474
</DataTemplate>
7575
</ListBox.ItemTemplate>
@@ -104,9 +104,11 @@
104104
<ListBox.ItemTemplate>
105105
<DataTemplate>
106106
<ItemsControl ItemsSource="{Binding Tags}">
107-
<ItemsPanelTemplate>
108-
<StackPanel Orientation="Horizontal" />
109-
</ItemsPanelTemplate>
107+
<ItemsControl.ItemsPanel>
108+
<ItemsPanelTemplate>
109+
<StackPanel Orientation="Horizontal" />
110+
</ItemsPanelTemplate>
111+
</ItemsControl.ItemsPanel>
110112
</ItemsControl>
111113
</DataTemplate>
112114
</ListBox.ItemTemplate>

0 commit comments

Comments
 (0)