No response

4 posts, 0 answers
  1. Earthcaller
    Earthcaller avatar
    10 posts
    Member since:
    Sep 2011

    Posted 03 Oct 2011 Link to this post

    Hi,
    I have posted my query http://www.telerik.com/community/forums/wpf/data-pager/adding-tool-tip-to-navigation-buttons.aspx.
    On Sep 23, 2011. 
    I am still waiting for any response.
    Would Telerik team please care to respond to my query.

    regards



  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Oct 2011 Link to this post

    Hi Earthcaller,

     Have you tried to modify the pager template with Blend to achieve your goal?

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Earthcaller
    Earthcaller avatar
    10 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    Thanks for the reply.
    I didnt try it with blend, I thought this should be available out of the box, like adding tooltip to other controls.

    Let me try with blend and will update you accordingly or perhaps you can provide me some link that aligns with my requirement would be a great help.

    regards.
  5. Earthcaller
    Earthcaller avatar
    10 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    Yes I edited the template and got the desired result.
    below is the xaml.
    <Style  TargetType="{x:Type Telerik_Windows_Controls_Data_DataPager:DataPagerPresenter}">
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type Telerik_Windows_Controls_Data_DataPager:DataPagerPresenter}">
              <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                  </Grid.ColumnDefinitions>
                  <StackPanel HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Orientation="Horizontal" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                    <telerik:RadButton x:Name="MoveToFirstPageButton" Command="telerik:RadDataPagerCommands.MoveToFirstPage" Height="18" Margin="2" Visibility="{Binding PagerControlsVisibility.MoveToFirstPageControlVisibility, RelativeSource={RelativeSource TemplatedParent}}" Width="18"
                                      
            ToolTipService.ShowOnDisabled="True"
                                       >
                      <telerik:RadButton.ToolTip>
                        <ToolTip>
                          <TextBlock Text="{x:Static resource:LocalizedCommonMessages.ButtonTooltip_MoveToFirstPage}" />
                        </ToolTip>
                      </telerik:RadButton.ToolTip>
                      <telerik:StyleManager.Theme>
                        <telerik:Office_BlackTheme/>
                      </telerik:StyleManager.Theme>
                      <StackPanel Orientation="Horizontal" >
                        <Rectangle Fill="Black" HorizontalAlignment="Center" Height="7" VerticalAlignment="Center" Width="1"/>
                        <Path Data="M0,0L3.5,3.5 0,7z" Fill="Black" HorizontalAlignment="Center" Height="7" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Center" Width="4">
                          <Path.RenderTransform>
                            <TransformGroup>
                              <ScaleTransform ScaleY="1" ScaleX="-1"/>
                              <SkewTransform AngleY="0" AngleX="0"/>
                              <RotateTransform Angle="0"/>
                              <TranslateTransform/>
                            </TransformGroup>
                          </Path.RenderTransform>
                        </Path>
                      </StackPanel>
                    </telerik:RadButton>
                    <telerik:RadButton x:Name="MoveToPreviousPageButton" Command="telerik:RadDataPagerCommands.MoveToPreviousPage" Height="18" Margin="2" Visibility="{Binding PagerControlsVisibility.MoveToPreviousPageControlVisibility, RelativeSource={RelativeSource TemplatedParent}}" Width="18"
                                       ToolTipService.ShowOnDisabled="True">
                      <telerik:RadButton.ToolTip>
                        <ToolTip>
                          <TextBlock Text="{x:Static resource:LocalizedCommonMessages.ButtonTooltip_MoveToPreviousPage}" />
                        </ToolTip>
                      </telerik:RadButton.ToolTip>
                      <telerik:StyleManager.Theme>
                        <telerik:Office_BlackTheme/>
                      </telerik:StyleManager.Theme>
                      <Path Data="M0,0L3.5,3.5 0,7z" Fill="Black" HorizontalAlignment="Center" Height="7" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Center" Width="4">
                        <Path.RenderTransform>
                          <TransformGroup>
                            <ScaleTransform ScaleY="1" ScaleX="-1"/>
                            <SkewTransform AngleY="0" AngleX="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform/>
                          </TransformGroup>
                        </Path.RenderTransform>
                      </Path>
                    </telerik:RadButton>
                    <Border BorderThickness="1,0,0,0" Background="#FF929292" Height="20" Visibility="{Binding PagerControlsVisibility.NumericElementsControlVisibility, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center">
                      <Border.BorderBrush>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                          <GradientStop Color="#FF494949" Offset="0"/>
                          <GradientStop Color="#FF9D9D9D" Offset="1"/>
                        </LinearGradientBrush>
                      </Border.BorderBrush>
                      <Telerik_Windows_Controls_Data_DataPager:NumericElementsPresenter AutoEllipsisMode="{TemplateBinding AutoEllipsisMode}" NumericButtonStyle="{TemplateBinding NumericButtonStyle}" NumericButtonCount="{TemplateBinding NumericButtonCount}" PageCount="{TemplateBinding PageCount}" PageIndex="{TemplateBinding PageIndex}">
                        <telerik:StyleManager.Theme>
                          <telerik:Office_BlackTheme/>
                        </telerik:StyleManager.Theme>
                      </Telerik_Windows_Controls_Data_DataPager:NumericElementsPresenter>
                    </Border>
                    <telerik:RadButton x:Name="MoveToNextPageButton" Command="telerik:RadDataPagerCommands.MoveToNextPage" Height="18" Margin="2" Visibility="{Binding PagerControlsVisibility.MoveToNextPageControlVisibility, RelativeSource={RelativeSource TemplatedParent}}" Width="18"
                                       ToolTipService.ShowOnDisabled="True">
                      <telerik:RadButton.ToolTip>
                        <ToolTip>
                          <TextBlock Text="{x:Static resource:LocalizedCommonMessages.ButtonTooltip_MoveToNextPage}" />
                        </ToolTip>
                      </telerik:RadButton.ToolTip>
                      <telerik:StyleManager.Theme>
                        <telerik:Office_BlackTheme/>
                      </telerik:StyleManager.Theme>
                      <Path Data="M0,0L3.5,3.5 0,7z" Fill="Black" HorizontalAlignment="Center" Height="7" VerticalAlignment="Center" Width="4"/>
                    </telerik:RadButton>
                    <telerik:RadButton x:Name="MoveToLastPageButton" Command="telerik:RadDataPagerCommands.MoveToLastPage" Height="18" Margin="2" Visibility="{Binding PagerControlsVisibility.MoveToLastPageControlVisibility, RelativeSource={RelativeSource TemplatedParent}}" Width="18"
                                       ToolTipService.ShowOnDisabled="True"
                                       >
                      <telerik:RadButton.ToolTip>
                        <ToolTip>
                          <TextBlock Text="{x:Static resource:LocalizedCommonMessages.ButtonTooltip_MoveToLastPage}" />
                        </ToolTip>
                      </telerik:RadButton.ToolTip>
                      <telerik:StyleManager.Theme>
                        <telerik:Office_BlackTheme/>
                      </telerik:StyleManager.Theme>
                      <StackPanel Orientation="Horizontal">
                        <Path Data="M0,0L3.5,3.5 0,7z" Fill="Black" HorizontalAlignment="Center" Height="7" VerticalAlignment="Center" Width="4"/>
                        <Rectangle Fill="Black" HorizontalAlignment="Center" Height="7" VerticalAlignment="Center" Width="1"/>
                      </StackPanel>
                    </telerik:RadButton>
                  </StackPanel>
                  <StackPanel Grid.Column="1" Margin="5,0" Orientation="Horizontal" Visibility="{Binding PagerControlsVisibility.TextControlVisibility, RelativeSource={RelativeSource TemplatedParent}}">
                    <Border Background="White" HorizontalAlignment="Left" Height="18" Margin="5,0,0,0" VerticalAlignment="Center" Width="1"/>
                    <Border Background="#FF848484" HorizontalAlignment="Left" Height="18" Margin="0,0,10,0" VerticalAlignment="Center" Width="1"/>
                    <TextBlock Margin="2,0" telerik:LocalizationManager.ResourceKey="RadDataPagerPage" Text="Page" VerticalAlignment="Center">
                      <Run Text="Page"/>
                    </TextBlock>
                    <Telerik_Windows_Controls_Data_DataPager:DataPagerTextBox Command="telerik:RadDataPagerCommands.MoveToPage" Height="20" IsEnabled="False" Margin="2,0" PageIndex="{TemplateBinding PageIndex}" VerticalAlignment="Center" Width="48">
                      <telerik:StyleManager.Theme>
                        <telerik:Office_BlackTheme/>
                      </telerik:StyleManager.Theme>
                    </Telerik_Windows_Controls_Data_DataPager:DataPagerTextBox>
                    <TextBlock Margin="2,0" telerik:LocalizationManager.ResourceKey="RadDataPagerOf" Text="of" VerticalAlignment="Center">
                      <Run Text="of"/>
                    </TextBlock>
                    <TextBlock Margin="2,0" Text="{Binding PageCount, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center"/>
                  </StackPanel>
                </Grid>
              </Border>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
      </Style>
    
    regards.
    
    
Back to Top