WPF RibbonButton

Posted by melculetz on Stack Overflow See other posts from Stack Overflow or by melculetz
Published on 2010-04-01T15:00:46Z Indexed on 2010/04/01 15:03 UTC
Read the original article Hit count: 533

Filed under:
|

How can I programatically set the text on a RibbonButton? Right now I have the code below, but the button does not display 'Browse'. Any suggestions?

RibbonButton btn = new RibbonButton();
btn.Name = "btnBrowse";
btn.Content = "Browse";
btn.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
btn.Click += new RoutedEventHandler(btn_Click);

© Stack Overflow or respective owner

Related posts about wpf

Related posts about ribbon