![]() (new GalleryItem(im5, "Hanna Moos", "")) (new GalleryItem(im4, "Anne Dodsworth", "")) (new GalleryItem(im3, "Mercedec-Benz", "")) GalleryItemGroup group2 = new GalleryItemGroup() GalleryItemGroup group1 = new GalleryItemGroup() Gc.Gallery.ImageSize = new Size(120, 90) ![]() Gc.Gallery.ItemImageLayout = ImageLayoutMode.ZoomInside Image im6 = Image.FromFile("c:\\Images\\JanetLeverling.jpg") Image im5 = Image.FromFile("c:\\Images\\HannaMoos.jpg") Image im4 = Image.FromFile("c:\\Images\\AnneDodsworth.jpg") Image im3 = Image.FromFile("c:\\Images\\MercedecBenz.jpg") Image im2 = Image.FromFile("c:\\Images\\Ford.jpg") Image im1 = Image.FromFile("c:\\Images\\BMW.jpg") This example shows how to create a Galler圜ontrol with two groups (Cars and People), and add images to these groups: Customizing the group filter context menu via the BaseGallery.FilterMenuPopup event.Filtering groups via a context menu (see StandaloneGallery.AllowFilter). ![]() Capability to specify a background image for the control ( Galler圜ontrolGallery.BackgroundImage).Instead of text, you can display a custom control within a group caption ( GalleryItemGroup.CaptionControl).Vertical and horizontal item and group arrangements ( Galler圜ontrolGallery.Orientation).Below is a list of additional features supported by the Galler圜ontrol. Then, add gallery items to each group using the GalleryItemGroup.Items collection.įeatures common to all DevExpress gallery controls are covered in the Gallery Controls topic. To initialize a gallery, first add gallery groups to the BaseGallery.Groups collection. The control’s gallery can be accessed with the Galler圜ontrol.Gallery property, which is of the Galler圜ontrolGallery class (a BaseGallery descendant). General information on galleries, items and gallery initialization can be found in the following topics: Galler圜ontrol is one of the DevExpress controls that provide the gallery functionality. Items can have captions and they can be combined into groups ( GalleryItemGroup), if required.īelow is a sample Galler圜ontrol that displays a set of images categorized into two groups (Cars and People): Galler圜ontrol allows you to implement an image gallery, where each item ( GalleryItem) is an image. The following members return Galler圜ontrol objects:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |