瀏覽代碼

调整样式路径为 工程相对路径

样式分支
fyf 2 年之前
父節點
當前提交
7058c848a9
共有 2 個檔案被更改,包括 6 行新增6 行删除
  1. +3
    -3
      BPASmartClient.SCADAControl/CustomerControls/StatusLight.cs
  2. +3
    -3
      BPASmartClient.SCADAControl/Themes/Generic.xaml

+ 3
- 3
BPASmartClient.SCADAControl/CustomerControls/StatusLight.cs 查看文件

@@ -75,13 +75,13 @@ namespace BPASmartClient.SCADAControl.CustomerControls
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State0.png", UriKind.Relative));
break;
case -1:
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State11.png", UriKind.Absolute));
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State11.png", UriKind.Relative));
break;
case 1:
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State1.png", UriKind.Absolute));
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State1.png", UriKind.Relative));
break;
case 2:
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State2.png", UriKind.Absolute));
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State2.png", UriKind.Relative));
break;
default:
break;


+ 3
- 3
BPASmartClient.SCADAControl/Themes/Generic.xaml 查看文件

@@ -1429,11 +1429,11 @@
<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}" />
<Setter Property="Foreground" Value="{DynamicResource foreground}" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<!--<Setter Property="Background">
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="../Images/btnkeys.png" />
<ImageBrush ImageSource="/BPASmartClient.SCADAControl;component/Images/btnkeys.png" />
</Setter.Value>
</Setter>-->
</Setter>
<Setter Property="Padding" Value="2,0,0,0" />
<Setter Property="Template">
<Setter.Value>


Loading…
取消
儲存