liuwf 3 months ago
parent d4d39038eb
commit 5d9dfb6ce2

@ -1,41 +1,48 @@
<Window x:Class="SlnMesnac.WPF.Page.WindowPage.MachineStopHistoryWindow" <Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SlnMesnac.WPF.Page.WindowPage" xmlns:local="clr-namespace:SlnMesnac.WPF.Page.WindowPage"
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui" x:Class="SlnMesnac.WPF.Page.WindowPage.MachineStopHistoryWindow"
mc:Ignorable="d" mc:Ignorable="d"
Title="MachineStopHistoryWindow" Height="500" Width="1000" Background="#1254AB" StateChanged="Window_StateChanged"> Title="MachineStopHistoryWindow" d:DesignHeight="1080" d:DesignWidth="1920" Height="500" Width="1000" Background="#1254AB" StateChanged="Window_StateChanged">
<Window.Resources> <Window.Resources>
<!-- 定义样式 --> <!-- 定义样式 -->
<Style x:Key="CustomDatePicker" TargetType="DatePicker"> <Style x:Key="CustomDatePicker" TargetType="{x:Type DatePicker}">
<!-- 设置背景颜色 --> <!-- 设置背景颜色 -->
<Setter Property="Background" Value="LightBlue"></Setter> <Setter Property="Background" Value="LightBlue"/>
<!-- 设置边框颜色 --> <!-- 设置边框颜色 -->
<Setter Property="BorderBrush" Value="DarkBlue"></Setter> <Setter Property="BorderBrush" Value="DarkBlue"/>
<!-- 设置字体样式 --> <!-- 设置字体样式 -->
<Setter Property="FontSize" Value="20"></Setter> <Setter Property="FontSize" Value="20"/>
<!-- 设置前景色(文本颜色) --> <!-- 设置前景色(文本颜色) -->
<Setter Property="Foreground" Value="Black"></Setter> <Setter Property="Foreground" Value="Black"/>
</Style> </Style>
<!-- 定义日历的样式 --> <!-- 定义日历的样式 -->
<Style x:Key="CustomCalendarStyle" TargetType="Calendar"> <Style x:Key="CustomCalendarStyle" TargetType="{x:Type Calendar}">
<!-- 设置背景颜色 --> <!-- 设置背景颜色 -->
<Setter Property="Background" Value="White"></Setter> <Setter Property="Background" Value="White"/>
<!-- 设置边框颜色 --> <!-- 设置边框颜色 -->
<Setter Property="BorderBrush" Value="Blue"></Setter> <Setter Property="BorderBrush" Value="Blue"/>
<Setter Property="Width" Value="350"></Setter> <Setter Property="Width" Value="350"/>
<Setter Property="Height" Value="250"></Setter> <Setter Property="Height" Value="250"/>
<!-- 设置字体样式 --> <!-- 设置字体样式 -->
<Setter Property="FontSize" Value="16"></Setter> <Setter Property="FontSize" Value="16"/>
</Style> </Style>
</Window.Resources> </Window.Resources>
<Grid Margin="5,5" > <Grid Margin="5,5" >
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -54,7 +61,7 @@
Foreground="White" > Foreground="White" >
<DataGrid.Resources> <DataGrid.Resources>
<!-- 定制 ScrollBar 样式 --> <!-- 定制 ScrollBar 样式 -->
<Style TargetType="ScrollBar"> <Style TargetType="{x:Type ScrollBar}">
<Setter Property="Background" Value="Transparent"/> <Setter Property="Background" Value="Transparent"/>
</Style> </Style>
@ -72,5 +79,9 @@
</DataGrid> </DataGrid>
</Border> </Border>
</Grid> </Grid>
<Grid Grid.Row="1">
</Grid>
</Grid> </Grid>
</Window> </Window>

@ -0,0 +1 @@
DevExpress.Xpf.WindowsUI.PageView, DevExpress.Xpf.Controls.v23.2, Version=23.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a

@ -36,6 +36,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" /> <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="devexpress.wpf.controls" Version="23.2.5" />
<PackageReference Include="Lierda.WPFHelper" Version="1.0.3" /> <PackageReference Include="Lierda.WPFHelper" Version="1.0.3" />
<PackageReference Include="LiveCharts" Version="0.9.7" /> <PackageReference Include="LiveCharts" Version="0.9.7" />
<PackageReference Include="LiveCharts.Wpf" Version="0.9.7" /> <PackageReference Include="LiveCharts.Wpf" Version="0.9.7" />

Loading…
Cancel
Save