public InstanceItem( RadGalleryGroupItem instance, RadGalleryGroupFilter filter, RadGalleryElement owner) { this.instance = instance; this.filter = filter; this.owner = owner; }
public void End() { this.host = null; this.edSvc = null; this.typeSvc = null; this.defaultFilter = null; this.defaultElement = null; this.originalValue = null; this.Reset(); }
public void End() { this.host = (IDesignerHost)null; this.edSvc = (IWindowsFormsEditorService)null; this.typeSvc = (ITypeDiscoveryService)null; this.defaultFilter = (RadGalleryGroupFilter)null; this.defaultElement = (RadGalleryElement)null; this.originalValue = (RadItemOwnerCollection)null; this.Reset(); }
public void Start(IWindowsFormsEditorService edSvc, ITypeDiscoveryService typeSvc, IDesignerHost host, RadItemOwnerCollection collection, RadGalleryGroupFilter filter, RadGalleryElement owner) { this.host = host; this.edSvc = edSvc; this.typeSvc = typeSvc; this.currentValue = collection; this.originalValue = collection; this.defaultFilter = filter; this.defaultElement = owner; }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider != null) { IWindowsFormsEditorService windowsFormsEditorService = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); ITypeDiscoveryService typeDiscoveryService = (ITypeDiscoveryService)provider.GetService(typeof(ITypeDiscoveryService)); IDesignerHost designerHost = (IDesignerHost)provider.GetService(typeof(IDesignerHost)); IComponentChangeService componentChangeService = (IComponentChangeService)provider.GetService(typeof(IComponentChangeService)); ISelectionService selectionService = (ISelectionService)provider.GetService(typeof(ISelectionService)); if (windowsFormsEditorService == null) { return(value); } RadItemOwnerCollection collection1 = value as RadItemOwnerCollection; RadGalleryGroupFilter filter = context.Instance as RadGalleryGroupFilter; RadGalleryElement owner = null; if (collection1 == null || filter == null) { return(value); } else { if (filter.Owner == null && selectionService != null && selectionService.PrimarySelection != null) { filter.Owner = (RadGalleryElement)selectionService.PrimarySelection; } owner = filter.Owner; if (owner == null) { return(value); } } if (this.filteredItemsUI == null) { this.filteredItemsUI = new FilteredItemsEditorUI(); } componentChangeService.OnComponentChanging(context.Instance, TypeDescriptor.GetProperties(context.Instance)["Items"]); this.filteredItemsUI.Start(windowsFormsEditorService, typeDiscoveryService, designerHost, collection1, filter, owner); if (windowsFormsEditorService.ShowDialog(this.filteredItemsUI) == DialogResult.OK) { this.filteredItemsUI.End(); value = this.filteredItemsUI.Value; componentChangeService.OnComponentChanged(context.Instance, TypeDescriptor.GetProperties(context.Instance)["Items"], null, null); return(value); } } return(value); }
public override object EditValue( ITypeDescriptorContext context, System.IServiceProvider provider, object value) { if (provider != null) { IWindowsFormsEditorService service1 = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); ITypeDiscoveryService service2 = (ITypeDiscoveryService)provider.GetService(typeof(ITypeDiscoveryService)); IDesignerHost service3 = (IDesignerHost)provider.GetService(typeof(IDesignerHost)); IComponentChangeService service4 = (IComponentChangeService)provider.GetService(typeof(IComponentChangeService)); ISelectionService service5 = (ISelectionService)provider.GetService(typeof(ISelectionService)); if (service1 == null) { return(value); } RadItemOwnerCollection collection = value as RadItemOwnerCollection; RadGalleryGroupFilter instance = context.Instance as RadGalleryGroupFilter; if (collection == null || instance == null) { return(value); } if (instance.Owner == null && service5 != null && service5.PrimarySelection != null) { instance.Owner = (RadGalleryElement)service5.PrimarySelection; } RadGalleryElement owner = instance.Owner; if (owner == null) { return(value); } if (this.filteredItemsUI == null) { this.filteredItemsUI = new FilteredItemsEditorUI(); } service4.OnComponentChanging(context.Instance, (MemberDescriptor)TypeDescriptor.GetProperties(context.Instance)["Items"]); this.filteredItemsUI.Start(service1, service2, service3, collection, instance, owner); if (service1.ShowDialog((Form)this.filteredItemsUI) == DialogResult.OK) { this.filteredItemsUI.End(); value = (object)this.filteredItemsUI.Value; service4.OnComponentChanged(context.Instance, (MemberDescriptor)TypeDescriptor.GetProperties(context.Instance)["Items"], (object)null, (object)null); return(value); } } return(value); }
public InstanceItem(RadGalleryItem instance, RadGalleryElement owner) { this.instance = instance; this.owner = owner; }
public RadGalleryDropDown(RadGalleryElement ownerElement) : base((RadElement)ownerElement) { this.FadeAnimationType = FadeAnimationType.FadeOut; }
public RadGalleryPopupButton(RadGalleryElement galleryElement) { this.galleryElement = galleryElement; }
public GalleryMouseOverBehavior(RadGalleryElement gallery) : base(RadElement.IsMouseOverProperty) { this.gallery = gallery; }
/// <summary> /// Creates an instance of the <see cref="Telerik.WinControls.UI.RadGalleryElement"/> /// class. /// </summary> /// <param name="ownerElement">An instance of the <see cref="Telerik.WinControls.UI.RadGalleryElement"/> /// class that represents the gallery that owns this drop-down.</param> public RadGalleryDropDown(RadGalleryElement ownerElement) : base(ownerElement) { this.AutoSize = false; this.FadeAnimationType = FadeAnimationType.FadeOut; }