From 18d50dfed31a53f56053cb6a11b34b13dc2c8f99 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 22 八月 2023 12:45:42 +0800 Subject: [PATCH] 1 --- DataLoader/MainWindow.xaml | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/DataLoader/MainWindow.xaml b/DataLoader/MainWindow.xaml index 3a35f2a..49dfa33 100644 --- a/DataLoader/MainWindow.xaml +++ b/DataLoader/MainWindow.xaml @@ -126,6 +126,16 @@ <Setter Property="Height" Value="35"/> <Setter Property="BorderThickness" Value="0"/> </Style> + + <!--<Style TargetType="DatePickerTextBox"> + <Setter Property="ItemsControl.Template"> + <Setter.Value> + <ControlTemplate> + <TextBox BorderThickness="0" Text="{Binding Path=SelectedDate, StringFormat='yyyy-MM-dd HH:mm:ss', RelativeSource={RelativeSource AncestorType=DatePicker}}" /> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style>--> </Window.Resources> <Grid x:Name="gMain"> <Grid.RowDefinitions> @@ -172,7 +182,9 @@ <Label Grid.Row="2" Grid.Column="0" Content="浼犳劅鍣ㄧ被鍨嬶細" VerticalAlignment="Center" HorizontalAlignment="Right" /> <TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource tb}" x:Name="tbSensorType"/> <Label Grid.Row="2" Grid.Column="2" Content="閲囬泦鏃堕棿锛�" VerticalAlignment="Center" HorizontalAlignment="Right" /> - <TextBox Grid.Row="2" Grid.Column="3" Style="{StaticResource tb}" x:Name="tbAcqTime"/> + <!--<TextBox Grid.Row="2" Grid.Column="3" Style="{StaticResource tb}" x:Name="tbAcqTime"/>--> + <DatePicker Grid.Row="2" Grid.Column="3" Height="35" Width="320" HorizontalAlignment="Center" VerticalContentAlignment="Center" x:Name="dpAcqTime" FontSize="13"/> + <Label Grid.Row="3" Grid.Column="0" Content="璧勬簮鐩綍锛�" VerticalAlignment="Center" HorizontalAlignment="Right" /> <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource tb}" x:Name="tbDir"/> -- Gitblit v1.9.3