SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

How can I bind to pointmedata ?

 <s:FastLineRenderableSeries  YAxisId="Ch0"
                                        DataSeries="{Binding DataSeries[Marker]}" Stroke="Transparent"
                                        AntiAliasing="False" ResamplingMode="None"  >
                <s:FastLineRenderableSeries.PointMarker>
                    <s:SpritePointMarker>
                        <s:SpritePointMarker.PointMarkerTemplate>
                            <ControlTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Test" Foreground="White"/>
                                    <s:CustomAnnotation >
                                        <s:CustomAnnotation.Style>
                                            <Style TargetType="s:CustomAnnotation">
                                                <Setter Property="Content">
                                                    <Setter.Value>
                                                        <Border x:Name="Border" BorderBrush="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=s:FastLineRenderableSeries},Path=MarkerAnnotationViewModel.BorderBrush}" BorderThickness="1" Width="11"
                        Height="11" Margin="-5,-5,0,0" CornerRadius="1"
                        Background="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=s:FastLineRenderableSeries},Path= PointMetadata.MarkerAnnotationViewModel.Background}">
                                                            <Border.Style>
                                                                <Style TargetType="Border">
                                                                    <Style.Triggers>
                                                                        <DataTrigger Binding="{Binding CanChange, UpdateSourceTrigger=PropertyChanged}"
                                             Value="True">
                                                                            <DataTrigger.EnterActions>
                                                                                <BeginStoryboard>
                                                                                    <Storyboard>
                                                                                        <DoubleAnimation Storyboard.TargetProperty="(Border.Opacity)"
                                                                 From="1" To="0" Duration="0:0:0.75"
                                                                 AutoReverse="True" RepeatBehavior="5x" />
                                                                                    </Storyboard>
                                                                                </BeginStoryboard>
                                                                            </DataTrigger.EnterActions>
                                                                            <DataTrigger.ExitActions>
                                                                                <BeginStoryboard>
                                                                                    <Storyboard>
                                                                                        <DoubleAnimation Storyboard.TargetProperty="Opacity" To="1.0"
                                                                 Duration="0:0:0" />
                                                                                    </Storyboard>
                                                                                </BeginStoryboard>
                                                                            </DataTrigger.ExitActions>
                                                                        </DataTrigger>
                                                                    </Style.Triggers>
                                                                </Style>
                                                            </Border.Style>
                                                        </Border>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </s:CustomAnnotation.Style>
                                    </s:CustomAnnotation>
                                    <TextBlock Text="Test2" Foreground="White"></TextBlock>
                                </StackPanel>
                            </ControlTemplate>
                        </s:SpritePointMarker.PointMarkerTemplate>
                    </s:SpritePointMarker>
                </s:FastLineRenderableSeries.PointMarker>
            </s:FastLineRenderableSeries>
Version
5.5
  • Oleksandr Shvets
    Hi Daniel, Thanks for your question. Could you please peovide us with more information regarding what are you trying to achieve? Thanks in advance, Oleksandr
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+