Esempio n. 1
0
 /// <summary>
 /// 展开整个Gallary时触发并调用该方法
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ribbonGalleryBarItem1_Gallery_InitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.ColumnCount = 1;
     e.PopupGallery.ShowItemText = true;
     e.PopupGallery.Images = rgHoverImages;
     e.PopupGallery.AllowHoverImages = false;
 }
 private static void Gallery_InitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.CreateFrom(_ribbonGalleryBarItemThemes.Gallery);
     e.PopupGallery.AllowFilter = false;
     e.PopupGallery.ShowItemText = true;
     e.PopupGallery.ShowGroupCaption = true;
     e.PopupGallery.AllowHoverImages = false;
     foreach (GalleryItemGroup galleryGroup in e.PopupGallery.Groups)
         foreach (GalleryItem item in galleryGroup.Items)
             item.Image = item.HoverImage;
     e.PopupGallery.ColumnCount = 2;
     e.PopupGallery.ImageSize = new Size(41, 41);
 }
 private void rgbiSkins_Gallery_InitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.CreateFrom(rgbiSkins.Gallery);
     e.PopupGallery.AllowFilter      = false;
     e.PopupGallery.ShowItemText     = true;
     e.PopupGallery.ShowGroupCaption = true;
     e.PopupGallery.AllowHoverImages = false;
     foreach (GalleryItemGroup galleryGroup in e.PopupGallery.Groups)
     {
         foreach (GalleryItem item in galleryGroup.Items)
         {
             item.Image = item.HoverImage;
         }
     }
     e.PopupGallery.ColumnCount = 2;
     e.PopupGallery.ImageSize   = new Size(70, 36);
 }
Esempio n. 4
0
 private void rgbiCurrentView_GalleryInitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.GalleryDropDown.ItemLinks.Add(bbiManageView);
     e.PopupGallery.GalleryDropDown.ItemLinks.Add(bbiSaveCurrentView);
     e.PopupGallery.SynchWithInRibbonGallery = true;
 }
Esempio n. 5
0
 private void rgbiCurrentView_GalleryInitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.GalleryDropDown.ItemLinks.Add(bbiManageView);
     e.PopupGallery.GalleryDropDown.ItemLinks.Add(bbiSaveCurrentView);
     e.PopupGallery.SynchWithInRibbonGallery = true;
 }
Esempio n. 6
0
 private void Skins_Gallery_PopupClose(object sender, InplaceGalleryEventArgs e)
 {
     BMS_DLL.DX.TEMAREGISTRYKAYDET("XtraReportDesigner");
 }
Esempio n. 7
0
 void FilterGalleryBarItem_GalleryInitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.GalleryDropDown.Gallery.Groups.Clear();
     e.PopupGallery.GalleryDropDown.Gallery.Groups.Add(e.Item.Gallery.Groups[0]);
     SetBarItem("AddFilter", e.PopupGallery.GalleryDropDown, true);
 }
Esempio n. 8
0
 void OnRgbiViewStyleInitDropDown(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.SynchWithInRibbonGallery = true;
 }
Esempio n. 9
0
 /// <summary>
 /// 展开整个Gallary时触发并调用该方法
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ribbonGalleryBarItem1_Gallery_InitDropDownGallery(object sender, InplaceGalleryEventArgs e)
 {
     e.PopupGallery.ColumnCount      = 1;
     e.PopupGallery.ShowItemText     = true;
     e.PopupGallery.Images           = rgHoverImages;
     e.PopupGallery.AllowHoverImages = false;
 }