Commit 61b4af7d authored by 潘栩锋's avatar 潘栩锋 🚴

添加 数据浏览器 设置界面 设置混合数,Y轴比例,直方图步长

parent 8d915907
...@@ -43,12 +43,12 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core ...@@ -43,12 +43,12 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer.Core
/// <summary> /// <summary>
/// 直方图统计步距 1um /// 直方图统计步距 1um
/// </summary> /// </summary>
public int Step = 1; public int Step { get; set; } = 1;
/// <summary> /// <summary>
/// 扫描图显示的范围比例 3倍 /// 扫描图显示的范围比例 3倍
/// </summary> /// </summary>
public double YRangePercent = 3; public double YRangePercent { get; set; } = 3;
/// <summary> /// <summary>
/// 混合数 /// 混合数
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition/> <RowDefinition/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<StackPanel>
<StackPanel Margin="{StaticResource ControlMargin}"> <StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Text="配置" FontSize="{StaticResource FontSize.H1}" Margin="{StaticResource ControlMargin}"/> <TextBlock Text="配置" FontSize="{StaticResource FontSize.H1}" Margin="{StaticResource ControlMargin}"/>
<StackPanel Margin="{StaticResource ControlMargin}"> <StackPanel Margin="{StaticResource ControlMargin}">
...@@ -50,7 +50,36 @@ ...@@ -50,7 +50,36 @@
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Text="统计方式" FontSize="{StaticResource FontSize.H2}" Margin="{StaticResource ControlMargin}"/>
<StackPanel Orientation="Horizontal" DataContext="{Binding DbViewerModel}">
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="混合数"/>
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Mix}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="次"/>
</StackPanel>
</StackPanel>
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="直方图统计步距"/>
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Step}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="um"/>
</StackPanel>
</StackPanel> </StackPanel>
<StackPanel Margin="{StaticResource ControlMargin}">
<TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="扫描图Y轴范围比例"/>
<StackPanel Orientation="Horizontal">
<TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding YRangePercent}"/>
<TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="倍"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
<Button VerticalAlignment="Top" HorizontalAlignment="Right" Style="{StaticResource Styles.Button.Circle.Accent}" Margin="{StaticResource ControlMargin}" Grid.Column="1" Click="ButtonBack_Click"> <Button VerticalAlignment="Top" HorizontalAlignment="Right" Style="{StaticResource Styles.Button.Circle.Accent}" Margin="{StaticResource ControlMargin}" Grid.Column="1" Click="ButtonBack_Click">
<iconPacks:PackIconMaterial Kind="ArrowLeft" /> <iconPacks:PackIconMaterial Kind="ArrowLeft" />
</Button> </Button>
......
...@@ -44,7 +44,7 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer ...@@ -44,7 +44,7 @@ namespace FLY.Thick.FilmCasting.UI.DbViewer
public RelayCommand DbSelectCmd { get; private set; } public RelayCommand DbSelectCmd { get; private set; }
public DbHelper DbHelper { get; } = new DbHelper(); public DbHelper DbHelper { get; } = new DbHelper();
public DbViewerModel DbViewerModel => dbViewerModel;
DbViewerModel dbViewerModel; DbViewerModel dbViewerModel;
public PageSetupVm() public PageSetupVm()
{ {
......
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