Hello,
There is a tooltip on the summary labels like "FieldName: 1,200 USD". Is there a change to show the tool tip like "FieldLabel: 1,200 USD".
Hi,
I am really glad I helped you out. Please verify the thread as answered if you don't have any furhter questions on the matter.
Thanks in advance.
Best regards Petar.
Works great. Thank you very much.
Hello ,
I have been looking into your issue and have found a way for you to achieve your goal. What you can do is copy the original template from the DefaultStyles folder and change the Border’s ToolTip binding like so:
<!-- _________________________ SummaryResultPresenter ______________________________________ -->
<Style TargetType="{x:Type igDP:SummaryResultPresenter}">
<Setter Property="Padding" Value="1,1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:SummaryResultPresenter}">
<Border
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1"
Padding="{TemplateBinding Padding}"
ToolTip="{Binding Path=SummaryResult, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource MyCon}}">
<TextBlock Text="{Binding Path=SummaryResult.DisplayTextAsync, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Margin" Value="0,0,0,2"/>
</Style>
and create a ToolTipConverter class implementing IValueConverter with a convert method like this one:
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value != null)
return (value as SummaryResult).SourceField.Label.ToString() + ": " + (value as SummaryResult).DisplayText;
}
else
return value;
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support