No information for TickMajorStyle property in XYDoubleAxis

Charts for WPF Forum

Posted 9 years ago by Eusebio
Version: 14.2.0611
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hi all,

I am trying to modify the color of the Axis lines in my chart because always appears as "grey" color. I think the name is Tick marks, I mean:

      |-

      |-

 Y   |-

a    |-

x    |-

e    |-

     |_____|_____|_____|_____|_____|_____|_____|_____|

                  X axe

I think is the propertyTickMajorStyle in XYDoubleAxis node but I do not how to set it

<charts:XYChart.YAxes>
<charts:XYDoubleAxis AreLabelsVisible="True" AreMajorTicksVisible="True" AreMinorTicksVisible="False" 
     TickMajorInterval="{Binding GainInterval, Mode=OneWay}" 
     TickMinorInterval="0.1" Minimum="{Binding MinGain, Mode=OneWay}"       
     Maximum="{Binding MaxGain, Mode=OneWay}" x:Name="Gain" Title="Gain (dB)"Focusable="False"
     TickMajorStyle=""/>
</charts:XYChart.YAxes>

 Could you tell me how to change this color? I can not updgrade the ActiproSoftware version.

Thanks a lot,

Eu

Comments (3)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

You can set the color by this sort of XAML:

<charts:XYDoubleAxis.TickMajorStyle>
	<Style TargetType="Shape">
		<Setter Property="Stroke" Value="Red" />
	</Style>
</charts:XYDoubleAxis.TickMajorStyle>


Actipro Software Support

Posted 9 years ago by Eusebio
Avatar

It works!

Thanks a lot.

Are there any "guide" to know how to use each librar yelements?

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

That's great to hear.  If you mean, how to custom style things, the documentation that comes with the product has some info but you can also get our default styles and see what we do there.  Your company is licensed for WPF Studio, so whoever has access to your company's account is able to download the default styles/templates for you.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.