Problem

No information for TickMajorStyle property in XYDoubleAxis

Posted 3 years ago by Avatar Eusebio

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 3 years ago by Actipro Software Support - Cleveland, OH, USA

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 3 years ago by Eusebio

It works!

Thanks a lot.

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

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

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
Information The latest build of this product (2018.1 build 0670) was released 4 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.