This is a migrated thread and some comments may be shown as answers.

Pdf import with custom defined pages!

2 Answers 63 Views
Book
This is a migrated thread and some comments may be shown as answers.
Nebojsa
Top achievements
Rank 1
Nebojsa asked on 12 Jan 2014, 10:11 AM
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 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Jan 2014, 03:49 PM
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 >>
0
Nebojsa
Top achievements
Rank 1
answered on 16 Jan 2014, 06:12 PM
Hi Martin
thanks very much for the example. I will try to implement that in my solution.
Best regards
Nebojsa Danilovic
Tags
Book
Asked by
Nebojsa
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Nebojsa
Top achievements
Rank 1
Share this question
or