Hi,
I try to display a custom Tooltip on cell... i have to fully customize the UI of my tooltip to display a custom details
I' try this but doesn't work:
<local:TooltipVisibilityConverter x:Key="visibilityConverter"/> <ToolTip x:Key="ToolTipControl" Visibility="{Binding Converter={StaticResource visibilityConverter}}" DataContext="{Binding Path=PlacementTarget, RelativeSource={x:Static RelativeSource.Self}}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border HorizontalAlignment="Stretch" BorderThickness="0,0,0,1" BorderBrush="Black" Margin="5" Grid.Row="0"> <TextBlock FontSize="14" Text="{Binding Path=Record.DataItem}"/> </Border> <TextBlock Grid.Row="1" Margin="10,0,5,0" Text="{Binding Path=Record.DataItem.Index}"/> </Grid> </ToolTip>
<Style TargetType="{x:Type igDP:DataRecordPresenter}"> <Setter Property="ToolTip" Value="{StaticResource ToolTipControl}" /> </Style>
Can you tell me how i can do that... Need a working Example Please.
Thx
I'm using the XamPivotGrid .
I need to know the XAML way for more flex. behaviors
thx.
Hello Michel,
Thank you for your post.
Before continuing with this thread, I would just like to confirm that you are actually using the XamPivotGrid in this case. I ask, as the ToolTip and the Style that you have provided look like they from something that was targeting the XamDataGrid, as the DataRecordPresenter element and the bindings to Record.DataItem are not going to exist anywhere in the XamPivotGrid.
Are you using the XamPivotGrid or the XamDataGrid in this case?