All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
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