RibbonButton Description Tect

Stimulsoft Reports.Silverlight discussion
Locked
MtheP
Posts: 24
Joined: Mon Jul 18, 2011 7:37 am

RibbonButton Description Tect

Post by MtheP »

I have manage to add a RibbonButton to the RibbonBar but I am unsure how to add the Descriptive Text. Also is there a way to add the button via the XAML

Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

RibbonButton Description Tect

Post by Anton Lozovskiy »

Hello,

Please use the following code:











Thank you.
MtheP
Posts: 24
Joined: Mon Jul 18, 2011 7:37 am

RibbonButton Description Tect

Post by MtheP »

Could you please give me the abobe example XAML in context of the ViewerControl


Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

RibbonButton Description Tect

Post by Andrew »

Hello,

The way you to add a button in the ToolBar in XAML is not possible. You can only do it from the code. Please see the code:

RibbonButton button = new RibbonButton();
button.MinWidth = 150;
button.Height = 24;
button.Content = "Descriptive Text";
viewerControl.MainToolBar.Items.Add(button);

Thank you.
Locked