fyf 2 years ago
parent
commit
c0aa51ae83
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      BPASmartClient.SCADAControl/Themes/Generic.xaml

+ 4
- 4
BPASmartClient.SCADAControl/Themes/Generic.xaml View File

@@ -1656,7 +1656,7 @@
FontFamily="Fonts/#Quartz M" FontFamily="Fonts/#Quartz M"
FontSize="20" FontSize="20"
Foreground="{DynamicResource ProgressBar.Progress.圆形蓝.Text}" Foreground="{DynamicResource ProgressBar.Progress.圆形蓝.Text}"
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0\}%}" />
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Loaded"> <EventTrigger RoutedEvent="Loaded">
@@ -1745,7 +1745,7 @@
FontFamily="Fonts/#Quartz M" FontFamily="Fonts/#Quartz M"
FontSize="20" FontSize="20"
Foreground="{DynamicResource ProgressBar.Progress.圆形绿.Text}" Foreground="{DynamicResource ProgressBar.Progress.圆形绿.Text}"
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0\}%}" />
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Loaded"> <EventTrigger RoutedEvent="Loaded">
@@ -1834,7 +1834,7 @@
FontFamily="Fonts/#Quartz M" FontFamily="Fonts/#Quartz M"
FontSize="20" FontSize="20"
Foreground="{DynamicResource ProgressBar.Progress.圆形红.Text}" Foreground="{DynamicResource ProgressBar.Progress.圆形红.Text}"
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0\}%}" />
Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat={}{0:f1}%}" />
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Loaded"> <EventTrigger RoutedEvent="Loaded">
@@ -1920,7 +1920,7 @@
FontFamily="{StaticResource Digital}" FontFamily="{StaticResource Digital}"
FontSize="12" FontSize="12"
Foreground="{DynamicResource Titleforeground}" Foreground="{DynamicResource Titleforeground}"
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, StringFormat={}百分比: {0} %}"
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, StringFormat={}百分比: {0:f2} %}"
Visibility="Visible" /> Visibility="Visible" />
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">


Loading…
Cancel
Save