Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
Hi
Is it posible to add a custom button to the pdfviewer toolbar in UI for WPF?
Hello Gabriell,
Thanks for contacting us.
It is possible to add a custom button to a pdfViewer toolbar in WPF. You can make it through the code behind.
private void toolbar_Loaded(object sender, RoutedEventArgs e) { var toolBar = this.pdfToolBar.FindChildByType<RadToolBar>(); var button = new RadButton() { Content = "Custom button", Background = Brushes.Red, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Stretch, Margin = new Thickness(2), Padding = new Thickness(0), HorizontalContentAlignment = HorizontalAlignment.Stretch, VerticalContentAlignment = VerticalAlignment.Center, IsBackgroundVisible = false }; button.Click += Button_Click; toolBar.Items.Add(button); }
Can you please try this and let me know if it helps?
Regards, Dinko Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Thanks a lot Dinko, that's exactly what I was looking for!
RegardsKim