修复实时按钮切换
This commit is contained in:
Binary file not shown.
@@ -59,7 +59,7 @@
|
||||
<!-- 探测器类型 | Detector Type -->
|
||||
<!-- 可选值: Varex, IRay, Hamamatsu, Simulated | Available values: Varex, IRay, Hamamatsu, Simulated -->
|
||||
<!-- 切换为 Simulated 可在无硬件环境下验证图像采集链路 | Switch to Simulated to verify image chain without hardware -->
|
||||
<add key="Detector:Type" value="Varex" />
|
||||
<add key="Detector:Type" value="Simulated" />
|
||||
<!-- 通用配置 | Common Configuration -->
|
||||
<add key="Detector:IP" value="192.168.1.200" />
|
||||
<add key="Detector:Port" value="5000" />
|
||||
|
||||
@@ -21,10 +21,13 @@
|
||||
SnapsToDevicePixels="True">
|
||||
<Border
|
||||
x:Name="Track"
|
||||
Background="#D5DCE3"
|
||||
BorderBrush="#C9D1D8"
|
||||
BorderThickness="1"
|
||||
CornerRadius="12" />
|
||||
CornerRadius="12">
|
||||
<Border.Background>
|
||||
<SolidColorBrush Color="#D5DCE3" />
|
||||
</Border.Background>
|
||||
</Border>
|
||||
|
||||
<Border
|
||||
x:Name="Thumb"
|
||||
@@ -55,7 +58,7 @@
|
||||
Storyboard.TargetName="ThumbTranslate"
|
||||
Storyboard.TargetProperty="X"
|
||||
To="20"
|
||||
Duration="0:0:0.18">
|
||||
Duration="0:0:0.2">
|
||||
<DoubleAnimation.EasingFunction>
|
||||
<CubicEase EasingMode="EaseInOut" />
|
||||
</DoubleAnimation.EasingFunction>
|
||||
@@ -64,7 +67,7 @@
|
||||
Storyboard.TargetName="Track"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
To="#2DCC70"
|
||||
Duration="0:0:0.18">
|
||||
Duration="0:0:0.2">
|
||||
<ColorAnimation.EasingFunction>
|
||||
<CubicEase EasingMode="EaseInOut" />
|
||||
</ColorAnimation.EasingFunction>
|
||||
@@ -72,17 +75,14 @@
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
</Trigger>
|
||||
|
||||
<Trigger Property="IsChecked" Value="False">
|
||||
<Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetName="ThumbTranslate"
|
||||
Storyboard.TargetProperty="X"
|
||||
To="0"
|
||||
Duration="0:0:0.18">
|
||||
Duration="0:0:0.2">
|
||||
<DoubleAnimation.EasingFunction>
|
||||
<CubicEase EasingMode="EaseInOut" />
|
||||
</DoubleAnimation.EasingFunction>
|
||||
@@ -91,14 +91,14 @@
|
||||
Storyboard.TargetName="Track"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
To="#D5DCE3"
|
||||
Duration="0:0:0.18">
|
||||
Duration="0:0:0.2">
|
||||
<ColorAnimation.EasingFunction>
|
||||
<CubicEase EasingMode="EaseInOut" />
|
||||
</ColorAnimation.EasingFunction>
|
||||
</ColorAnimation>
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
|
||||
@@ -166,6 +166,8 @@ namespace XplorePlane.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsMainViewportSwitchEnabled => true;
|
||||
|
||||
public bool IsUsingLiveDetectorSource => _mainViewportService.CurrentSourceMode == MainViewportSourceMode.LiveDetector;
|
||||
|
||||
public string DataRootPath
|
||||
|
||||
Reference in New Issue
Block a user