123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <Window x:Class="aipdev.CreateImageBatchWindow"
- 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:aipdev"
- xmlns:entities="clr-namespace:AIPlatform.Protocol.Entities;assembly=AIPlatform.Protocol"
- mc:Ignorable="d"
- Title="创建图像批次" Height="280" Width="480" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" >
- <Window.Resources>
- <local:IsNotNullOrEmptyConverter x:Key="isNotNullOrEmptyConverter"/>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="20"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="1">
- <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
- <TextBlock Margin="8" VerticalAlignment="Center" Text="组织" Width="70"/>
- <ComboBox x:Name="cbbOrganizations" Margin="8" VerticalAlignment="Center" Width="340" SelectionChanged="OnOrganizationSelectionChanged">
- <ComboBox.ItemTemplate>
- <DataTemplate DataType="{x:Type entities:Organization}">
- <Label Content="{Binding Name}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
- <TextBlock Margin="8" VerticalAlignment="Center" Text="图像大类" Width="70"/>
- <ComboBox x:Name="cbbImageCategories" Margin="8" VerticalAlignment="Center" Width="340" IsTextSearchEnabled="False" IsEditable="True" KeyUp="OnImageCategoryKeyUp"
- SelectionChanged="cbbImageCategories_SelectionChanged" ToolTip="{Binding Path=Text, ElementName=cbbImageCategories,Converter={StaticResource isNotNullOrEmptyConverter}}">
- <ComboBox.ItemTemplate>
- <DataTemplate DataType="{x:Type entities:ImageCategory}">
- <Label Content="{Binding Name}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
- <TextBlock Margin="8" VerticalAlignment="Center" Text="图像批次" Width="70"/>
- <TextBox x:Name="txtImageBatch" Margin="8" VerticalAlignment="Center" Width="340" ToolTip="{Binding Path=Text, ElementName=txtImageBatch,Converter={StaticResource isNotNullOrEmptyConverter}}"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1">
- <Button Content="取消" VerticalAlignment="Center" Click="OnCloseClick"/>
- <Button Content="确定" VerticalAlignment="Center" Margin="8" Style="{StaticResource btn-primary}" Click="OnOkClick" IsDefault="True"/>
- </StackPanel>
- </Grid>
- </Window>
|