Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
MarkerSize Binding issue
posted

The minute I uncomment MarkerStyle Property, nothing shows up? what is wrong with this style?

<Style TargetType="ig:ScatterSeries">
<Setter Property="MarkerType"
Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.PointType, Converter={converters1:PointTypeConverter}}" />
<Setter Property="MarkerBrush"
Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.MarkerColor}" />
<Setter Property="Brush"
Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.MarkerColor}" />
<Setter Property="BorderBrush"
Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.MarkerColor}" />
<!--<Setter Property="MarkerStyle">
<Setter.Value>
<Style TargetType="{x:Type ig:Marker}">
<Setter Property="Width" Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.PointSize, FallbackValue=8}"/>
<Setter Property="Height" Value="{Binding ElementName=xmDataChart, Path=DataContext.YAxisViewModel.Curve.PointSize, FallbackValue=8}"/>
</Style>
</Setter.Value>
</Setter>-->
</Style>

Parents
No Data
Reply
  • 34510
    Verified Answer
    Offline posted

    Hi Noman,

    Try setting the Margin to 0 on the Marker.  By default the Marker has a bit of a margin and if your Width and Height are small enough you won't see the marker content.  Removing the Margin will allow your markers to show with a small size.

Children