下差我WPF
應用與ListView
和ProgressBar
內。 我定義這個顏色Foreground
我ProgressBar
:WPF:爲什麼我的前景顏色看起來不同的操作系統
Windows 8
下,我可以看到這個顏色,但Windows 7
下,我可以看到不同的顏色:
所以我的問題是是有可能在所有操作系統中看到我的願望顏色?
編輯:
這是我所創建的風格:
<Style x:Key="CustomProgressBar" TargetType="ProgressBar" >
<Setter Property="Foreground" Value="#FF15669E"></Setter>
</Style>
這是我ProgressBar
:
<ProgressBar Name="prog" Maximum="100" Value="{Binding Progress}"
Width="{Binding Path=Width, ElementName=ProgressCell}" Background="#FFD3D0D0" Style="{StaticResource CustomProgressBar}"/>
但顏色沒有變化。
看看這個已經回答的問題:http://stackoverflow.com/問題/ 4734814/wpf-progressbar-foreground-color也許這適用於Windows 7. – dognose