Commit 4b40027b authored by 潘栩锋's avatar 潘栩锋 🚴

添加 dynarea PosMm, 以后界面不需要 initparam.Encoder1_mmpp 转换器

parent b7e6b3e8
...@@ -12,17 +12,22 @@ ...@@ -12,17 +12,22 @@
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/> <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Converter/Dictionary_MyConv.xaml"/> <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_ItemHeader"> <Style TargetType="TextBlock" x:Key="Style.Text.ItemHeader">
<Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="YouYuan"/> <Setter Property="FontFamily" Value="YouYuan"/>
<Setter Property="FontSize" Value="12"/> <Setter Property="FontSize" Value="12"/>
<Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="#FF3B3B3B"/>
<Setter Property="Margin" Value="5,0"/> <Setter Property="Margin" Value="5,0"/>
</Style> </Style>
<Style TargetType="TextBlock" x:Key="Style.Text.ItemValue">
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontFamily" Value="Microsoft Sans Serif"/>
<Setter Property="FontSize" Value="24"/>
</Style>
</ResourceDictionary> </ResourceDictionary>
</UserControl.Resources> </UserControl.Resources>
<Border Style="{StaticResource Styles.Module.Border}" Name="Border_AD" > <Border Style="{StaticResource Styles.Module.Border}" >
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
...@@ -54,8 +59,10 @@ ...@@ -54,8 +59,10 @@
</Rectangle.Width> </Rectangle.Width>
</Rectangle> </Rectangle>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Text="AD" Style="{StaticResource TextBlockStyle_ItemHeader}" /> <TextBlock Style="{StaticResource Style.Text.ItemHeader}" FontFamily="Microsoft Sans Serif"
<TextBlock Text="{Binding AD, Converter={StaticResource ResourceKey=intconv}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" /> Text="AD" />
<TextBlock Style="{StaticResource Style.Text.ItemValue}"
Text="{Binding AD, Converter={StaticResource intconv}}" />
</StackPanel> </StackPanel>
</Grid> </Grid>
<Grid Margin="2"> <Grid Margin="2">
...@@ -73,8 +80,8 @@ ...@@ -73,8 +80,8 @@
</Rectangle.Width> </Rectangle.Width>
</Rectangle> </Rectangle>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Text="位置" Style="{StaticResource TextBlockStyle_ItemHeader}" /> <TextBlock Style="{StaticResource Style.Text.ItemHeader}" Text="位置" />
<TextBlock FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" > <TextBlock Style="{StaticResource Style.Text.ItemValue}" >
<Run> <Run>
<MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F0}"> <MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F0}">
<Binding Path="Position" /> <Binding Path="Position" />
...@@ -82,17 +89,17 @@ ...@@ -82,17 +89,17 @@
</MultiBinding> </MultiBinding>
</Run> </Run>
</TextBlock> </TextBlock>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black"> <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
<Run Text="mm"/> Text="mm"/>
</TextBlock> <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" FontSize="24" Foreground="Black"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm_interval}" Text="|" FontSize="24" Foreground="Black"/> <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
<TextBlock Text="{Binding Position}" Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black"> Text="{Binding Position}" >
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal"> <StackPanel Grid.Column="1" Orientation="Horizontal">
<TextBlock Text="{Binding Velocity,StringFormat={}{0:F1},Mode=OneWay}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" /> <TextBlock Style="{StaticResource Style.Text.ItemValue}" Text="{Binding Velocity,StringFormat={}{0:F1},Mode=OneWay}" />
<TextBlock Text="m/min" Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black"/> <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
Text="m/min" />
</StackPanel> </StackPanel>
</Grid> </Grid>
</StackPanel> </StackPanel>
......
...@@ -35,7 +35,10 @@ namespace FLY.Thick.Base.Common ...@@ -35,7 +35,10 @@ namespace FLY.Thick.Base.Common
/// 编码器1 位置 脉冲 /// 编码器1 位置 脉冲
/// </summary> /// </summary>
public int Position { get; set; } public int Position { get; set; }
/// <summary>
/// 测厚仪位置mm
/// </summary>
public double PosMm { get; set; }
/// <summary> /// <summary>
/// AD值 /// AD值
/// </summary> /// </summary>
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper"> <PackageReference Include="AutoMapper">
<Version>9.0.0</Version> <Version>10.1.1</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Newtonsoft.Json"> <PackageReference Include="Newtonsoft.Json">
<Version>12.0.3</Version> <Version>12.0.3</Version>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment