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.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
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