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
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,
did you have the time to check out the sample I've posted?
Could I help you further with this?
Regards,
Still not sure where the problem is: I had already created a sample with 2012/4.5 and it worked fine using v10.1.
It would not work in 2010/3.5 v10.1 -- I upgraded to 2012/4.5 v14.1 and it doesn't work either. I noticed you had used v12.
What does it mean when it just returns the object name (System.Windows.Controls.StackPanel)? The code for the usercontrol is exactly the same except for the project name reference, Yet my sample, like yours, works but the other one doesn't. I commented out any data reference so that the stackpanel only has text and that doesn't matter.
Not sure what to do -- huge waste of time...
Finally figured it out... Nothing to do with you guys... turns out that there was a default resource definition for a tooltip and theirs either something wrong with it or somehow conflicts with the more complex rendition. Once I commented that out as a global resource in app.xaml it's working. Since such code didn't exist in the test projects it didn't have the interference.
thanks for the effort -- paul
I'm glad you figured that out.