12345678910111213141516171819202122232425262728293031 |
- <Window x:Class="YoloV5ImageLableWpfApp.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:YoloV5ImageLableWpfApp"
- mc:Ignorable="d"
- Title="MainWindow" MinHeight="1080" MinWidth="1920">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*"></ColumnDefinition>
- <ColumnDefinition Width="8*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Canvas Grid.Column="0">
- <Label Height="48" Width="374" FontSize="27" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">图片标记区</Label>
- <Button Canvas.Left="44" Canvas.Top="53" Height="36" Width="100" Click="Button_Click">选择图片目录</Button>
- <Button Canvas.Left="166" Canvas.Top="53" HorizontalAlignment="Center" VerticalAlignment="Top" Height="36" Width="84">移除目录</Button>
- <Button Canvas.Left="262" Canvas.Top="53" HorizontalAlignment="Center" VerticalAlignment="Top" Height="81" Width="80" Click="Button_Click_1">完成标记</Button>
- <TextBox Width="148" Text="1" FontSize="20" x:Name="lableName" Height="28" Canvas.Left="92" Canvas.Top="106" HorizontalAlignment="Left" VerticalAlignment="Top"></TextBox>
- <Label Canvas.Left="29" Canvas.Top="106" HorizontalAlignment="Left" VerticalAlignment="Top">标记名称</Label>
- <ListBox DisplayMemberPath="Name" MouseLeftButtonDown="imageList_MouseDoubleClick" MouseDoubleClick="imageList_MouseDoubleClick" x:Name="imageList" Height="851" Width="364" Canvas.Left="10" Canvas.Top="204" HorizontalAlignment="Center" VerticalAlignment="Top" d:ItemsSource="{d:SampleData ItemCount=5}"></ListBox>
- <TextBlock TextWrapping="WrapWithOverflow" Width="293" x:Name="filePath" Height="48" Canvas.Left="92" Canvas.Top="152" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- <Label Canvas.Left="29" Canvas.Top="152" Content="图片路径" HorizontalAlignment="Center" VerticalAlignment="Top"/>
- </Canvas>
- <Canvas Grid.Column="1" x:Name="canvas" Width="960" Height="540">
- <Image Canvas.Left="0" Canvas.Top="0" x:Name="image" Height="540" Width="960"></Image>
- </Canvas>
- </Grid>
- </Window>
|