Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Misc / ImageListUtils.cs / 1 / ImageListUtils.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDataSourceDataSelection.cs
- SourceItem.cs
- Timer.cs
- PathFigureCollection.cs
- TwoPhaseCommitProxy.cs
- EllipseGeometry.cs
- StackSpiller.Bindings.cs
- SizeAnimationUsingKeyFrames.cs
- InternalTypeHelper.cs
- CapabilitiesSection.cs
- FrugalList.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ExpressionBindingCollection.cs
- StyleTypedPropertyAttribute.cs
- Int32AnimationUsingKeyFrames.cs
- HttpListenerRequest.cs
- RegexWorker.cs
- ParserHooks.cs
- VisualSerializer.cs
- _SslSessionsCache.cs
- WebPartZoneAutoFormat.cs
- KeyGesture.cs
- PersonalizationState.cs
- CommandBinding.cs
- XmlAtomicValue.cs
- DataControlFieldCell.cs
- ViewBox.cs
- DataServiceQuery.cs
- Tile.cs
- XmlSchemas.cs
- StateChangeEvent.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SecureStringHasher.cs
- TableLayoutSettings.cs
- ControlValuePropertyAttribute.cs
- HtmlDocument.cs
- Process.cs
- TreeNodeEventArgs.cs
- BuildResult.cs
- HandlerElementCollection.cs
- ListDictionary.cs
- FullTrustAssemblyCollection.cs
- AsyncStreamReader.cs
- SQLBinaryStorage.cs
- XmlUnspecifiedAttribute.cs
- SqlLiftIndependentRowExpressions.cs
- AudienceUriMode.cs
- ToolBarButton.cs
- CollectionChange.cs
- XmlSerializerFactory.cs
- precedingquery.cs
- CryptoHelper.cs
- ParentUndoUnit.cs
- StylusOverProperty.cs
- EncoderReplacementFallback.cs
- BooleanAnimationUsingKeyFrames.cs
- WorkflowOperationErrorHandler.cs
- InputScopeConverter.cs
- KnownAssemblyEntry.cs
- StorageMappingItemLoader.cs
- PageBuildProvider.cs
- HttpEncoder.cs
- Serializer.cs
- JsonDataContract.cs
- SqlTypesSchemaImporter.cs
- PresentationTraceSources.cs
- RunClient.cs
- TripleDES.cs
- AttachedPropertyBrowsableAttribute.cs
- JsonEnumDataContract.cs
- AsyncOperation.cs
- SessionStateContainer.cs
- EdmToObjectNamespaceMap.cs
- Int32EqualityComparer.cs
- Imaging.cs
- TogglePattern.cs
- Int64Animation.cs
- DesignerOptionService.cs
- ImportedNamespaceContextItem.cs
- SessionPageStatePersister.cs
- RegexCode.cs
- UnsafeNativeMethods.cs
- EntityViewGenerator.cs
- DBSchemaRow.cs
- Dispatcher.cs
- WorkerRequest.cs
- SHA512.cs
- VisualStyleRenderer.cs
- DataMemberConverter.cs
- XmlSerializationWriter.cs
- RootProjectionNode.cs
- InlineCollection.cs
- Mouse.cs
- CodeDirectionExpression.cs
- DrawingImage.cs
- TextAction.cs
- BitmapCodecInfoInternal.cs
- DesignerTransactionCloseEvent.cs
- TableRow.cs
- ControlCommandSet.cs