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
205
Not sure where this problem is? Tooltip - in 3.5 - with xamgrid
posted

One the web I see there is a problem with a complex tooltip using a stackpanel in 3.5. -- The same code works fine in 4.0... 

here's the original code... 

<igDP:FieldLayout>
<igDP:Field Name="CompanyNameAreaName" Width="225" Label="Company - Office Location" Visibility="Visible" ToolTipService.ShowDuration="500000" Row="1" Column="1" >
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.CellValuePresenterStyle>
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="FontSize" Value="10" />
<Setter Property="ToolTip" >
<Setter.Value>
<StackPanel>
<TextBlock Text="---- Tech Test Comment ---- " FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
<TextBlock Text="{Binding DataItem.TechTestComments}" TextWrapping="WrapWithOverflow" Width="300"/>
<TextBlock Text="---- Field Inspection Comment ----" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
<TextBlock Text="{Binding DataItem.FieldInspectionComments}" TextWrapping="WrapWithOverflow" Width="300"/>
</StackPanel>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.CellValuePresenterStyle>...

--- Here's what is supposed to be a work around -- but it just outputs "StackPanel"...

<igDP:XamDataGrid.Resources>

<StackPanel x:Key="resComments" >
<TextBlock Text=" Tech Test Comment " FontWeight="Bold" HorizontalAlignment="Center" />
<TextBlock Text="{Binding DataItem.TechTestComments}" TextWrapping="WrapWithOverflow" Width="300"/>
<TextBlock Text=" Field Inspection Comment " FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
<TextBlock Text="{Binding DataItem.FieldInspectionComments}" TextWrapping="WrapWithOverflow" Width="300"/>
</StackPanel>...

<igDP:FieldLayout>
<igDP:Field Name="CompanyNameAreaName" Width="250" Label="Company - Office Location" Visibility="Visible" ToolTipService.ShowDuration="500000" Column="0" Row="1" >
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.CellValuePresenterStyle>
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="FontSize" Value="10" />
<Setter Property="ToolTip" Value="{StaticResource resComments}" />
</Style>
</igDP:FieldSettings.CellValuePresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>...

--- is this an infragistics problem that I only get the string definition "System.Windows.Controls.StackPanel" under .net 3.5 for is this a more general problem? -- Any suggestions... again it works under 4.0

thanks

Parents
No Data
Reply
  • 6759
    Offline posted

    Hi Paul,

    I've tested the workaround the tooltip issue with XamDataGrid v12.1 for .net 3.5 and was not able to reproduce the issue you've described. I've attached the sample solution I used for testing. If that does not help could you modify the sample so the issue is present or provide a new sample so I could be able to investigate it in detail. It might also be hepfull to know what version

    of the XamDataGrid you are using.

    Hope that help,

    XamDataGrid_Tooltip_Net35.zip
Children