beltrams Posted November 30, 2010 Report Share Posted November 30, 2010 Dear forum, I would like to set the chart color palette in an resource dictionary so that the palette changes when I change the theme of my application. I would like to use the default palettes, not write my own palette. If in the resourche dictionary I add <cfx:Palette key="palette1"> I have to rewrite the entire palette. Is there any way to set one of the default palettes (for example cfx:Palettes.HighContrastBlack) from a dictionary Thanks, Simone Quote Link to comment Share on other sites More sharing options...
JuanC Posted November 30, 2010 Report Share Posted November 30, 2010 You can try setting up a default style that targets the Chart FX Chart class in your resource dictionary as follows <Style x:Key="{x:Type cfx:Chart}" TargetType="{x:Type cfx:Chart}"> <Setter Property="Palette" Value="{x:Static cfx:Palettes.Mesa}"/> </Style> Regards, JuanC Quote Link to comment Share on other sites More sharing options...
beltrams Posted December 2, 2010 Author Report Share Posted December 2, 2010 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.