Fast navigation

10 posts, 0 answers
  1. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 15 May 2013 Link to this post

    Hi,

     Pleasr help me to add a custom button to navigate after 10 pages at a strech.

    Thanks,
    Henry
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 May 2013 Link to this post

    Hi,

    Please check the following code I tried which works fine at my end.

    XAML:
    <telerik:RadButton Name="RadButton1" Content="Fast Navigate >>" Click='RadButton1_Click' Margin="722,555,44,23">
    </telerik:RadButton>

    C#:
    private void RadButton1_Click(object sender, RoutedEventArgs e)
    {
        // Specify the desired number of pages.
        RadBook1.RightPageIndex += 10;
    }

    Thanks,
    Shinu.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 16 May 2013 Link to this post

    Thanks shinu.

    I tried to add an image button instead but it is generating an error. Finally I tried to add an image inside button tag but i cannot set a source.
    Any suggestion?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 May 2013 Link to this post

    Hi Henry,

    I guess the error is due to setting the content more than once. If you need to set a text content and an image, place the Image and TextBlock inside a StackPanel. Please have a look at the following sample code.

    XAML:
    <telerik:RadButton Name="RadButton1" Click="RadButton1_Click" Margin="311,512,310,50" Background="White">
        <StackPanel>
            <Image Source="Images/Play.gif" Width="30" Height="30"></Image>
            <TextBlock Text=" Play"></TextBlock>
        </StackPanel>
    </telerik:RadButton>

    Thanks,
    Shinu
  6. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 21 May 2013 Link to this post

    Hi Shinu,

    Can we use the same code we use for silverlight radcontrols? I asked because both uses xaml nd same coding structure?
  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 May 2013 Link to this post

    Hi,

    Certain controls such as RadAutoCompleteBox, RadComboBox etc supports code reuse. These controls shares a single codebase with its Silverlight counterpart. This means that you can achieve close to 100% code reuse for the controls logic if you have parallel Silverlight/WPF development. Please check  the Telerik WPF documentation of the corresponding telerik documentation to check if it support code reuse.

    Thanks,
    Shinu.
  8. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 28 May 2013 Link to this post

    Hi shinu,
    How can I add a pdf file and view in radbook. I checked google and got some old links telling that its not possible. So what can I do with this? 
  9. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 May 2013 Link to this post

    Hi,

    Its possible with the recent versions of RadControls for WPF with the help of RadPDFViewer. Please have a look at the Telerik WPF RadBook demo which demonstrates integrating PDF viewer into RadBook.

    Thanks,
    Shinu.
  10. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 04 Jun 2013 Link to this post

    Thanks Shinu, got things working fine. I have another doubt, whether pdfviewer can open password protected documents? I tried with one such doc, but failed. I just want to confirm this.
  11. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jun 2013 Link to this post

    Hi,

    RadPDFViewer does not support password-protected documents as well as encrypted documents when a non-standard encryption method is used.

    Thanks,
    Shinu.
Back to Top
UI for WPF is Visual Studio 2017 Ready