コード例 #1
0
 protected override void InitializeFields()
 {
     base.InitializeFields();
     this.BitState[8796093022208L] = true;
     this.tools           = new RadItemOwnerCollection();
     this.tools.ItemTypes = new System.Type[3]
     {
         typeof(RadMenuItem),
         typeof(RadMenuButtonItem),
         typeof(RadMenuComboItem)
     };
     this.items           = new RadItemOwnerCollection();
     this.items.ItemTypes = new System.Type[1]
     {
         typeof(RadGalleryItem)
     };
     this.items.ItemsChanged += new ItemChangedDelegate(this.items_ItemsChanged);
     this.groups              = new RadItemOwnerCollection();
     this.groups.ItemTypes    = new System.Type[1]
     {
         typeof(RadGalleryGroupItem)
     };
     this.filters           = new RadItemOwnerCollection();
     this.filters.ItemTypes = new System.Type[1]
     {
         typeof(RadGalleryGroupFilter)
     };
     this.ClipDrawing  = true;
     this.zoomBehavior = new GalleryMouseOverBehavior(this);
     this.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
 }
コード例 #2
0
ファイル: RadGalleryItem.cs プロジェクト: RichardHaggard/BDC
        public bool IsZoomShown()
        {
            PropertyChangeBehaviorCollection behaviors = this.GetBehaviors();

            if (behaviors.Count == 0)
            {
                return(false);
            }
            GalleryMouseOverBehavior mouseOverBehavior = behaviors[0] as GalleryMouseOverBehavior;

            if (mouseOverBehavior == null)
            {
                return(false);
            }
            return(mouseOverBehavior.IsPopupShown);
        }
コード例 #3
0
        public void ZoomHide()
        {
            PropertyChangeBehaviorCollection behaviorCollection = this.GetBehaviors();

            if (behaviorCollection.Count == 0)
            {
                return;
            }

            GalleryMouseOverBehavior galleryMouseOverBehavior = behaviorCollection[0] as GalleryMouseOverBehavior;

            if (galleryMouseOverBehavior == null)
            {
                return;
            }
            galleryMouseOverBehavior.ClosePopup();
        }
コード例 #4
0
        protected override void InitializeFields()
        {
            base.InitializeFields();

            this.BitState[FilterEnabledStateKey] = true;

            this.tools           = new RadItemOwnerCollection();
            this.tools.ItemTypes = new Type[] { typeof(RadMenuItemBase) };

            this.items               = new RadItemOwnerCollection();
            this.items.ItemTypes     = new Type[] { typeof(RadGalleryItem) };
            this.items.ItemsChanged += new ItemChangedDelegate(items_ItemsChanged);

            this.groups           = new RadItemOwnerCollection();
            this.groups.ItemTypes = new Type[] { typeof(RadGalleryGroupItem) };

            this.filters           = new RadItemOwnerCollection();
            this.filters.ItemTypes = new Type[] { typeof(RadGalleryGroupFilter) };

            this.ClipDrawing  = true;
            this.zoomBehavior = new GalleryMouseOverBehavior(this);
            this.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
        }