20230724_MBJC_upperpc/Views/AnchorPointView.xaml

63 lines
2.7 KiB
Plaintext
Raw Normal View History

2023-12-23 03:35:57 +00:00
<UserControl
x:Class="_20230724_MBJC_upperpc.Views.AnchorPointView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:_20230724_MBJC_upperpc.Common"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:_20230724_MBJC_upperpc.Views"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="9*" />
<ColumnDefinition Width="7*" />
</Grid.ColumnDefinitions>
<Grid Name="LeftGrid" Grid.Column="0">
<local:AnchorModel
x:Name="AnchorModel"
TBDEnable="True"
Visibility="Visible" />
<local:InitialView
Width="{Binding ElementName=LeftGrid, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
Height="{Binding ElementName=LeftGrid, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
Margin="10,0,0,10"
HorizontalAlignment="Left"
VerticalAlignment="Bottom" />
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<DatePicker
Width="100"
HorizontalAlignment="Left"
VerticalAlignment="Center"
materialDesign:HintAssist.Hint="开始时间"
materialDesign:TextFieldAssist.HasClearButton="True"
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
<DatePicker
Width="100"
HorizontalAlignment="Right"
VerticalAlignment="Center"
materialDesign:HintAssist.Hint="结束时间"
materialDesign:TextFieldAssist.HasClearButton="True"
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
</Grid>
</Grid>
</UserControl>