Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Misc / ImageListUtils.cs / 1305376 / 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
- Decimal.cs
- Soap12FormatExtensions.cs
- UnsafeNativeMethods.cs
- SamlSecurityToken.cs
- X509CertificateRecipientServiceCredential.cs
- BindValidationContext.cs
- DataServiceQueryContinuation.cs
- DiscardableAttribute.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- SingleObjectCollection.cs
- FloaterParaClient.cs
- HWStack.cs
- TypeConverterHelper.cs
- Size3D.cs
- ProviderConnectionPoint.cs
- StartUpEventArgs.cs
- JapaneseCalendar.cs
- DictionaryContent.cs
- EntryWrittenEventArgs.cs
- ThreadPoolTaskScheduler.cs
- UnsafeNativeMethods.cs
- Expressions.cs
- PriorityBinding.cs
- IRCollection.cs
- DetailsViewRowCollection.cs
- WebPartConnectionsEventArgs.cs
- DependencyStoreSurrogate.cs
- DesignTimeTemplateParser.cs
- DataServiceRequest.cs
- RuntimeConfigLKG.cs
- EncoderFallback.cs
- EventLogEntryCollection.cs
- sqlpipe.cs
- AssemblyAttributes.cs
- Configuration.cs
- SecondaryIndex.cs
- UnicastIPAddressInformationCollection.cs
- InputLanguageEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- CryptoApi.cs
- HostingEnvironmentException.cs
- LocatorBase.cs
- SystemGatewayIPAddressInformation.cs
- WmlSelectionListAdapter.cs
- ExpressionsCollectionEditor.cs
- AudioFileOut.cs
- ExtensibleClassFactory.cs
- StyleCollection.cs
- RenderDataDrawingContext.cs
- XmlEventCache.cs
- UIPermission.cs
- CellParagraph.cs
- CalendarTable.cs
- SettingsPropertyWrongTypeException.cs
- SmiConnection.cs
- ApplicationManager.cs
- RootBuilder.cs
- ComponentResourceKeyConverter.cs
- ContentElement.cs
- App.cs
- WebBrowsableAttribute.cs
- ArrayTypeMismatchException.cs
- RenderContext.cs
- ClaimComparer.cs
- PublisherIdentityPermission.cs
- ShimAsPublicXamlType.cs
- DurableRuntimeValidator.cs
- XmlSchemaSimpleContentExtension.cs
- DetailsViewDeletedEventArgs.cs
- ControlPropertyNameConverter.cs
- QuaternionKeyFrameCollection.cs
- EntityDataSourceContainerNameItem.cs
- SystemResources.cs
- SchemaNames.cs
- BindUriHelper.cs
- OutKeywords.cs
- DataServiceHost.cs
- DataError.cs
- WebPartVerb.cs
- StrongNameSignatureInformation.cs
- MulticastDelegate.cs
- ResXDataNode.cs
- XXXOnTypeBuilderInstantiation.cs
- CreateDataSourceDialog.cs
- DoubleAnimationUsingKeyFrames.cs
- TreeNodeMouseHoverEvent.cs
- ColumnMapCopier.cs
- KeyGesture.cs
- ListViewGroupConverter.cs
- VersionedStream.cs
- NullableLongMinMaxAggregationOperator.cs
- WmlLinkAdapter.cs
- ViewManager.cs
- EqualityComparer.cs
- NativeMethods.cs
- OleCmdHelper.cs
- WinEventHandler.cs
- DataGridColumnReorderingEventArgs.cs
- NamedObject.cs
- MethodBody.cs