作者:chey 来源: 浏览:Loading... 日期:2013-08-22
今天有朋友提到Stimulsoft Reports.Silverlight报表设计按钮(ShowDesignButton)的代码,下来找了下,现在把他发到Stimulsoft Reports中文网上和大家分享。
代码:
StiToolBar toolBar = new StiToolBar();
toolBar.Height = 28;
toolBar.SetValue(DockPanel.DockProperty, Dock.Right);
toolBar.Margin = new Thickness(4, 2, 2, 2);
#region buttonDesign
RibbonButton buttonDesign = new RibbonButton();
buttonDesign.Content = "Design";
buttonDesign.MinWidth = 130;
buttonDesign.Height = 24;
#endregion
toolBar.Items.Add(buttonDesign);
this.viewerControl.ToolbarPanel.Children.Insert(0, toolBar);
Tag标签:Stimulsoft Reports.Silverlight 报表设计