调整代码
This commit is contained in:
@@ -375,19 +375,19 @@
|
||||
Height="15"
|
||||
Fill="{DynamicResource ControlBackgroundNormalBrush}"
|
||||
StrokeThickness="1">
|
||||
<!--<Ellipse.Effect>
|
||||
<Ellipse.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="12"
|
||||
Opacity="0.4"
|
||||
Color="{DynamicResource DarkShadowColor}" />
|
||||
</Ellipse.Effect>-->
|
||||
</Ellipse.Effect>
|
||||
</Ellipse>
|
||||
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True" />
|
||||
<Trigger Property="IsDragging" Value="True">
|
||||
<!--<Setter TargetName="grip" Property="Effect">
|
||||
<Setter TargetName="grip" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect
|
||||
BlurRadius="4"
|
||||
@@ -395,7 +395,7 @@
|
||||
ShadowDepth="3"
|
||||
Color="{DynamicResource DarkShadowColor}" />
|
||||
</Setter.Value>
|
||||
</Setter>-->
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="grip" Property="Effect" Value="{x:Null}" />
|
||||
@@ -436,6 +436,7 @@
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Width="8"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalAlignment="center"
|
||||
BorderBrush="{DynamicResource BorderNormalBrush}"
|
||||
BorderThickness="1"
|
||||
@@ -510,10 +511,9 @@
|
||||
x:Name="ValueDisplay"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource PrimaryNormalBrush}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=F1}">
|
||||
<TextBlock.LayoutTransform>
|
||||
<RotateTransform Angle="-90" />
|
||||
@@ -577,6 +577,7 @@
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Height="8"
|
||||
Margin="5,0,5,0"
|
||||
VerticalAlignment="center"
|
||||
BorderBrush="{DynamicResource BorderNormalBrush}"
|
||||
BorderThickness="1"
|
||||
@@ -649,15 +650,13 @@
|
||||
Fill="{TemplateBinding Foreground}"
|
||||
Placement="Bottom"
|
||||
Visibility="Collapsed" />
|
||||
<!-- 新增:简单的值显示TextBlock,放在滑块下方 -->
|
||||
<TextBlock
|
||||
x:Name="ValueDisplay"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="4,0,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource PrimaryNormalBrush}"
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=F1}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user