1
我正在主持一個Silverlight線條系列圖表,並且對於我的生活無法弄清楚如何主題顏色的週期刻度我的圖表Silverlight工具包 - 如何爲主題線條系列圖的刻度線顏色
在淺色背景顯示,但是在深色背景上時,他們看起來很棒,他們是看不見的(他們是黑人)
任何幫助將不勝感激
感謝 道格
我正在主持一個Silverlight線條系列圖表,並且對於我的生活無法弄清楚如何主題顏色的週期刻度我的圖表Silverlight工具包 - 如何爲主題線條系列圖的刻度線顏色
在淺色背景顯示,但是在深色背景上時,他們看起來很棒,他們是看不見的(他們是黑人)
任何幫助將不勝感激
感謝 道格
當你看看內置樣式Silverlight工具包的圖表,你會看到以下內容:
<!-- charting:Chart -->
<Style TargetType="charting:Chart">
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Padding" Value="10" />
<Setter Property="Palette">
<Setter.Value>
<datavis:ResourceDictionaryCollection>
<!-- Blue -->
<ResourceDictionary>
<RadialGradientBrush x:Key="Background" GradientOrigin="-0.1,-0.1" Center="0.075,0.015" RadiusX="1.05" RadiusY="0.9">
<GradientStop Color="#FFB9D6F7" />
<GradientStop Color="#FF284B70" Offset="1" />
</RadialGradientBrush>
<Style x:Key="DataPointStyle" TargetType="Control">
<Setter Property="Background" Value="{StaticResource Background}" />
</Style>
<Style x:Key="DataShapeStyle" TargetType="Shape">
<Setter Property="Stroke" Value="{StaticResource Background}" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="StrokeMiterLimit" Value="1" />
<Setter Property="Fill" Value="{StaticResource Background}" />
</Style>
</ResourceDictionary>
<!-- Red -->
<ResourceDictionary>
<RadialGradientBrush x:Key="Background" GradientOrigin="-0.1,-0.1" Center="0.075,0.015" RadiusX="1.05" RadiusY="0.9">
<GradientStop Color="#FFFBB7B5" />
<GradientStop Color="#FF702828" Offset="1" />
</RadialGradientBrush>
<Style x:Key="DataPointStyle" TargetType="Control">
<Setter Property="Background" Value="{StaticResource Background}" />
</Style>
<Style x:Key="DataShapeStyle" TargetType="Shape">
<Setter Property="Stroke" Value="{StaticResource Background}" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="StrokeMiterLimit" Value="1" />
<Setter Property="Fill" Value="{StaticResource Background}" />
</Style>
</ResourceDictionary>
的顏色來自於面板性能 - 每一個新系列會從這個調色板另一個項目,儘可能我可以告訴。
前段時間,我嘗試使用Silverlight Toolkit圖表做一個應用程序,並在幾天後將它們扔進垃圾箱 - 它們根本不適合使用/定製。我使用的是Visifire圖表,並且對它們非常滿意,因爲它們更容易使用。 – Sander 2011-01-11 11:22:41
我已經完成了一個相當大的項目,成功地使用它們 - 這是我遇到的唯一問題,所以現在更改組件已經太晚了...... – Doug 2011-01-13 01:56:50