VoucherGrid.xaml
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<UserControl x:Class="VoucherGridCtl.VoucherGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VoucherGridCtl"
mc:Ignorable="d" Width="836.825" Height="478.8" Loaded="UserControl_Loaded" >
<UserControl.Resources>
<Style x:Key="lblHeader" TargetType="Label">
<Setter Property="Background" Value="AliceBlue"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0,1,1,1"/>
<Setter Property="BorderBrush" Value="Black"/>
</Style>
<Style x:Key="amountHeader" TargetType="Label">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Label}">
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,0">
<Border.Background>
<SolidColorBrush Color="#FFFFFF"/>
</Border.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Content="借方" Grid.Row="0" Grid.Column="0" Style="{StaticResource lblHeader}"/>
<Label Content="贷方" Grid.Row="0" Grid.Column="1" Style="{StaticResource lblHeader}"/>
<local:VoucherGridAmoutHeader Grid.Row="1" Grid.Column="0" BorderBrush="Black" BorderThickness="0,0,1,1"/>
<local:VoucherGridAmoutHeader Grid.Row="1" Grid.Column="1" BorderBrush="Black" BorderThickness="0,0,1,1"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Border BorderThickness="1,1,1,1" BorderBrush="Black">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="400"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" BorderThickness="1,1,1,1" Style="{StaticResource lblHeader}"/>
后面还有 40 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。