Pdf import with custom defined pages!

3 posts, 0 answers
  1. Nebojsa Danilovic
    Nebojsa Danilovic avatar
    18 posts
    Member since:
    Feb 2010

    Posted 12 Jan 2014 Link to this post

    Hi,
    is it possible to have a book as combination of my custom defined pages(cover page and last page) and in between to have pdf content (like in pdf radbook integration example).
    best regards
    Nebojsa Danilovic 
  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 15 Jan 2014 Link to this post

    Hello Nebojsa,

    Yes, you can achieve your requirement by using custom DataTemplateSelector. You will need to put all your business objects in a single collection (for example: ObservableCollection<object>) and pass it as ItemsSource of the RadBook. Then you should define your custom DataTemplateSelector class and you should declare it in XAML. Also note that you will need to define DataTemplates for your pages. 

    I attached a sample project to demonstrate this approach.

    Regards,
    Martin Ivanov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nebojsa Danilovic
    Nebojsa Danilovic avatar
    18 posts
    Member since:
    Feb 2010

    Posted 16 Jan 2014 Link to this post

    Hi Martin
    thanks very much for the example. I will try to implement that in my solution.
    Best regards
    Nebojsa Danilovic
Back to Top