Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
4b40027b
Commit
4b40027b
authored
May 30, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 dynarea PosMm, 以后界面不需要 initparam.Encoder1_mmpp 转换器
parent
b7e6b3e8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
72 deletions
+82
-72
DynAreaThick.xaml
...Y.Thick.Base/FLY.Thick.Base.UI/UiModule/DynAreaThick.xaml
+77
-70
DynArea.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Common/DynArea.cs
+4
-1
FLY.Thick.Base.csproj
Project.FLY.Thick.Base/FLY.Thick.Base/FLY.Thick.Base.csproj
+1
-1
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UiModule/DynAreaThick.xaml
View file @
4b40027b
...
...
@@ -12,17 +12,22 @@
<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.MergedDictionaries>
<Style TargetType="TextBlock" x:Key="
TextBlockStyle_
ItemHeader">
<Style TargetType="TextBlock" x:Key="
Style.Text.
ItemHeader">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="YouYuan"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="#FF3B3B3B"/>
<Setter Property="Margin" Value="5,0"/>
</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>
</UserControl.Resources>
<Border Style="{StaticResource Styles.Module.Border}"
Name="Border_AD"
>
<Border Style="{StaticResource Styles.Module.Border}" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
...
...
@@ -54,8 +59,10 @@
</Rectangle.Width>
</Rectangle>
<StackPanel Orientation="Horizontal">
<TextBlock Text="AD" Style="{StaticResource TextBlockStyle_ItemHeader}" />
<TextBlock Text="{Binding AD, Converter={StaticResource ResourceKey=intconv}}" FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Style="{StaticResource Style.Text.ItemHeader}" FontFamily="Microsoft Sans Serif"
Text="AD" />
<TextBlock Style="{StaticResource Style.Text.ItemValue}"
Text="{Binding AD, Converter={StaticResource intconv}}" />
</StackPanel>
</Grid>
<Grid Margin="2">
...
...
@@ -73,8 +80,8 @@
</Rectangle.Width>
</Rectangle>
<StackPanel Orientation="Horizontal">
<TextBlock Text="位置" Style="{StaticResource TextBlockStyle_ItemHeader}
" />
<TextBlock FontSize="24" FontFamily="Microsoft Sans Serif" TextAlignment="Center" HorizontalAlignment="Center
" >
<TextBlock Style="{StaticResource Style.Text.ItemHeader}" Text="位置
" />
<TextBlock Style="{StaticResource Style.Text.ItemValue}
" >
<Run>
<MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F0}">
<Binding Path="Position" />
...
...
@@ -82,17 +89,17 @@
</MultiBinding>
</Run>
</TextBlock>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black">
<Run Text="mm"/>
</TextBlock>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm_interval}" Text="|" FontSize="24" Foreground="Black"/>
<TextBlock Text="{Binding Position}" Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black">
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
Text="mm"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" FontSize="24" Foreground="Black"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
Text="{Binding Position}" >
</TextBlock>
</StackPanel>
<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 Text="m/min" Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" FontSize="12" Foreground="Black"/>
<TextBlock Style="{StaticResource Style.Text.ItemValue}" Text="{Binding Velocity,StringFormat={}{0:F1},Mode=OneWay}" />
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" FontSize="12" Foreground="Black"
Text="m/min" />
</StackPanel>
</Grid>
</StackPanel>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Common/DynArea.cs
View file @
4b40027b
...
...
@@ -35,7 +35,10 @@ namespace FLY.Thick.Base.Common
/// 编码器1 位置 脉冲
/// </summary>
public
int
Position
{
get
;
set
;
}
/// <summary>
/// 测厚仪位置mm
/// </summary>
public
double
PosMm
{
get
;
set
;
}
/// <summary>
/// AD值
/// </summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/FLY.Thick.Base.csproj
View file @
4b40027b
...
...
@@ -153,7 +153,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference
Include=
"AutoMapper"
>
<Version>
9.0.0
</Version>
<Version>
10.1.1
</Version>
</PackageReference>
<PackageReference
Include=
"Newtonsoft.Json"
>
<Version>
12.0.3
</Version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment