Tooltip for 'Recurring task on single row'

2 posts, 0 answers
  1. 송 avatar
    1 posts
    Member since:
    Jul 2017

    Posted 02 Aug Link to this post

    When Mouse is on a recurring, it show tooltip.

    However when case 'Recurring task on single row', it doesn't show tooltip.

    How can I make it to show tooltip when 'Recurring task on single row'?

  2. Polya
    Admin
    Polya avatar
    238 posts

    Posted 07 Aug Link to this post

    Hi 송,

    In order to have a tooltip in this example you should add one in the TimeLineRecurenceContainer control template. In this specific example we did not add a tooltip for this container.
    You can achieve this by adding this tooltip under the VisualStateManager.VisualStateGroups. For example:

    <telerik:ToolTipManager.ToolTip>
        <ToolTip Content="{Binding}">
            <ToolTip.ContentTemplate>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*" MinWidth="130"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <TextBlock Text="{Binding Title}" Grid.ColumnSpan="2" Margin="0" TextWrapping="NoWrap" TextTrimming="None"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Start" Grid.Row="1" Margin="0 0 3 0"/>
                        <TextBlock Text="{Binding Start, Converter={StaticResource DateTimeToCurrentUICultureStringConverter}}" Grid.Row="1" Grid.Column="1" TextWrapping="NoWrap" TextTrimming="None"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="End" Grid.Row="2" Margin="0 0 3 0"/>
                        <TextBlock Text="{Binding End, Converter={StaticResource DateTimeToCurrentUICultureStringConverter}}" Grid.Row="2" Grid.Column="1" TextWrapping="NoWrap" TextTrimming="None"/>
                    </Grid>
                </DataTemplate>
            </ToolTip.ContentTemplate>
        </ToolTip>
    </telerik:ToolTipManager.ToolTip>

    Hope this helps.

    Regards,
    Polya
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top