I'm trying to set a tooltip for a column in a XamDataGrid. I basically want to have a short label, but when you hover the mouse over the label, you get the long description. So I might have a label of "TD Quantity" for a column, and have a tooltip of "Trade Date Quantity". I found the ToolTipService off of the FieldLayout, but I can't seem to get that to do anything, and I can't find any documentation for it.
Is there an easy way to do tooltips?
Thanks,
-Ryan
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="TD Quantity"> <igDP:Field.Settings> <igDP:FieldSettings > <igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields> <igDP:Field Name="TD Quantity"> <igDP:Field.Settings> <igDP:FieldSettings > <igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields>
<igDP:FieldLayout.Fields>
<igDP:Field Name="TD Quantity"> <igDP:Field.Settings> <igDP:FieldSettings > <igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
<igDP:Field Name="TD Quantity">
<igDP:Field.Settings> <igDP:FieldSettings > <igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle> </igDP:FieldSettings> </igDP:Field.Settings>
<igDP:Field.Settings>
<igDP:FieldSettings > <igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle> </igDP:FieldSettings>
<igDP:FieldSettings >
<igDP:FieldSettings.LabelPresenterStyle> <Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style> </igDP:FieldSettings.LabelPresenterStyle>
<igDP:FieldSettings.LabelPresenterStyle>
<Style TargetType="{x:Type igDP:LabelPresenter}"> <Setter Property="ToolTip" Value="Trade Date Quantity"/> </Style>
<Style TargetType="{x:Type igDP:LabelPresenter}">
<Setter Property="ToolTip" Value="Trade Date Quantity"/>
</Style>
</igDP:FieldSettings.LabelPresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
That worked. Thanks!