public
RadForm1()
{
InitializeComponent();
this
.radRibbonBarBackstageView1.SizeChanged += radRibbonBarBackstageView1_SizeChanged;
}
private
void
radRibbonBarBackstageView1_SizeChanged(
object
sender, EventArgs e)
{
BackstageViewElement backstageViewElemet = radRibbonBarBackstageView1.BackstageElement;
BackstageItemsPanelElement itemsPanel = backstageViewElemet.ItemsPanelElement;
item.MinSize =
new
System.Drawing.Size(200, itemsPanel.Size.Height - 10);
}
void
RadForm1_Load(
object
sender, EventArgs e)
{
BackstageViewElement backstageViewElemet = radRibbonBarBackstageView1.BackstageElement;
BackstageItemsPanelElement itemsPanel = backstageViewElemet.ItemsPanelElement;
RadScrollablePanel p =
new
RadScrollablePanel();
RadHostItem host =
new
RadHostItem(p);
host.StretchHorizontally =
true
;
host.StretchVertically =
true
;
p.Dock = DockStyle.Fill;
for
(
int
i = 0; i < 10; i++)
{
RadButton b =
new
RadButton() { Text =
"Test"
+ i };
b.Dock = DockStyle.Top;
p.Controls.Add(b);
}
item.Children.Add(host);
itemsPanel.Items.Add(item);
this
.radRibbonBarBackstageView1.BackstageViewOpened += radRibbonBarBackstageView1_BackstageViewOpened;
}
BackstageButtonItem item =
new
BackstageButtonItem();
private
void
radRibbonBarBackstageView1_BackstageViewOpened(
object
sender, EventArgs e)
{
BackstageViewElement backstageViewElemet = radRibbonBarBackstageView1.BackstageElement;
BackstageItemsPanelElement itemsPanel = backstageViewElemet.ItemsPanelElement;