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
1690
Tooltip without marker
posted

Hi,

I created a xamDataChart with ScatterSeries and custom tooltip:

<ig:XamDataChart.Series>
<ig:ScatterSeries ItemsSource="{Binding}"
MarkerBrush="Red"
MarkerType="Circle"
XMemberPath="PstD"
YMemberPath="TotalDemPct"
XAxis="{Binding ElementName=xmNumericXAxis}"
YAxis="{Binding ElementName=xmNumericYAxes}">
<ig:ScatterSeries.ToolTip>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Item.Number}"/>
<TextBlock Text="-"/>
<TextBlock Text="{Binding Item.Name}"/>
<TextBlock Text="("/>
<TextBlock Text="{Binding Item.PstD}"/>
<TextBlock Text=","/>
<TextBlock Text="{Binding Item.TotalDemPct}"/>
<TextBlock Text=")"/>
</StackPanel>
</ig:ScatterSeries.ToolTip>
</ig:ScatterSeries>
</ig:XamDataChart.Series>

My tooltip contains marker picture at the left side. How can I remove it ?

Thanks,

Ed

  • 35319
    Verified Answer
    posted

    Hello,

     

    Thank you for your post. I have been looking into your question and you can create your own style for the tooltip as it is suggested in the following link from our online documentation :

     

    http://help.infragistics.com/Help/NetAdvantage/WPF/2012.2/CLR4.0/html/xamDataChart_Chart_Tooltips.html

     

    The desired tooltip style may look like e.g. :

     

            <Style x:Key="ToolTipStyle" TargetType="ContentControl">

                    <Setter Property="Background" Value="#FFF7F8FA"/>

                    <Setter Property="Foreground" Value="#FF373737"/>

                    <Setter Property="Padding" Value="7"/>

                    <Setter Property="BorderThickness" Value="1"/>

                    <Setter Property="Template">

                        <Setter.Value>

                            <ControlTemplate TargetType="ContentControl">

                                <Border CornerRadius="4" BorderThickness="{TemplateBinding BorderThickness}" Background="#FFFFFFFF" BorderBrush="{TemplateBinding BorderBrush}">

                                    <shared:SafeSetters.Setters>

                                        <shared:SafeSetterCollection>

                                            <shared:SafeSetter PropertyName="Effect">

                                                <shared:SafeSetter.ValueAsXamlString>

                                                    &lt;DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Opacity="0.4"/&gt;

                                                </shared:SafeSetter.ValueAsXamlString>

                                            </shared:SafeSetter>

                                        </shared:SafeSetterCollection>

                                    </shared:SafeSetters.Setters>

                                    <Border BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius="4" Background="{TemplateBinding Background}" >

                                        <StackPanel Orientation="Horizontal">

                                            <ContentPresenter Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}"/>

                                        </StackPanel>

                                    </Border>

                                </Border>

                            </ControlTemplate>

                        </Setter.Value>

                    </Setter>

                </Style>

     

    If you need any further assistance on this matter, feel free to ask.