fix editing tiled images

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-08-14 12:54:32 +03:00
parent eb9e2a6f47
commit d1ce9d9365
6 changed files with 31 additions and 25 deletions
+3 -2
View File
@@ -138,8 +138,9 @@
Header="Редактор"
Visibility="Collapsed">
<controls:CanvasEditor x:Name="ExplorerEditor"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch" >
Background="#01000000"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch" >
</controls:CanvasEditor>
</TabItem>
<TabItem Name="ClassDistributionTab" Header="Розподіл класів">
+1 -4
View File
@@ -195,10 +195,7 @@ public partial class DatasetExplorer
ThumbnailsView.SelectedIndex = index;
var ann = CurrentAnnotation.Annotation;
ExplorerEditor.Background = new ImageBrush
{
ImageSource = await ann.ImagePath.OpenImage()
};
ExplorerEditor.SetBackground(await ann.ImagePath.OpenImage());
SwitchTab(toEditor: true);
ExplorerEditor.RemoveAllAnns();