One more thing.
Perhaps this should be a separate issue, however, I note that with this method, if I set the default visibility of either the PrimaryAxis or the XAxis on the logarithmic series to "Collapsed" I get extraneous grid lines. Please see the attached screenshot.
The associated xaml is
<Style x:Key="syncfLinearAxis" TargetType="syncfusion:NumericalAxis">
<Setter Property="Visibility" Value="Collapsed"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Source={x:Reference ti2D}, Path=IsSelected}" Value="True"/>
<Condition Binding="{Binding ElementName=tiRootBending, Path=IsSelected}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Visibility" Value="Visible"/>
</MultiDataTrigger>
</Style.Triggers>
</Style>
The base control for this is a UserControl, and the style is defined in the UserControl.Resources property.
Here is the xaml from the SfChart:
<syncfusion:SfChart.PrimaryAxis>
<syncfusion:NumericalAxis Style="{StaticResource syncfLinearAxis}"
Header="{x:Static props:Resources.plot2DBendingXAxisTitle}"
LabelFormat="{x:Static props:Resources.bending2DRootNodeAxisFormatString}"
Minimum="1" Maximum="{Binding Path=ElementsAlongFace}"/>
</syncfusion:SfChart.PrimaryAxis>
However, if I make the default Visibility "Hidden" with the same style except that the value for the Visibility is "Hidden" as in the following xaml:
<Style x:Key="syncfLinearAxis" TargetType="syncfusion:NumericalAxis">
<Setter Property="Visibility" Value="
Hidden"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Source={x:Reference ti2D}, Path=IsSelected}" Value="True"/>
<Condition Binding="{Binding ElementName=tiRootBending, Path=IsSelected}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Visibility" Value="Visible"/>
</MultiDataTrigger>
</Style.Triggers>
</Style>
The extraneous grid lines disappear. This happens on both the NumericalAxis and the LogarithmicAxis.
Thanks again.
Best Regards,
Matthew
Attachment:
ExtraneousGridLines_a36576d7.zip