1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <Window x:Class="vCloud.GeneratePackages.Tool.UpdatePackageInfoWindow"
- 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:vCloud.GeneratePackages.Tool"
- xmlns:extensions="clr-namespace:vCloud.GeneratePackages.Tool.Extensions"
- mc:Ignorable="d"
- Title="UpdatePackageInfoWindow" WindowState="Maximized">
- <Grid>
- <ScrollViewer>
- <ItemsControl ItemsSource="{Binding PackageInfos}" HorizontalContentAlignment="Center">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Border Margin="7"
- CornerRadius="4"
- BorderBrush="#d6e9c6"
- BorderThickness="1">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border Name="header" Background="#dff0d8" BorderBrush="#d6e9c6" BorderThickness="0,0,0,1" >
- <StackPanel Orientation="Horizontal" Margin="7">
- <TextBlock Text="{Binding PackageType}" FontWeight="Bold" Foreground="#3c763d" />
- <CheckBox IsChecked="{Binding IsPublic}">
- <CheckBox.Style>
- <Style TargetType="CheckBox">
- <Setter Property="Content" Value="发布"/>
- <Setter Property="Margin" Value="7,0"/>
- <Setter Property="Foreground" Value="#3c763d"/>
- <Style.Triggers>
- <Trigger Property="IsChecked" Value="False">
- <Setter Property="Content" Value="不发布"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </CheckBox.Style>
- </CheckBox>
- </StackPanel>
- </Border>
- <ItemsControl Grid.Row="1" ItemsSource="{ Binding LanguageInfos}" Visibility="{Binding IsPublic, Converter={extensions:BoolToVisibilityConverterExtension }}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid Columns="4"/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBlock Text="{Binding Language}" Margin="10,0"/>
- <TextBox TextWrapping="Wrap"
- Grid.Row="1"
- Text="{Binding Text}"
- MinHeight="300"
- AcceptsReturn="True"/>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Window>
|