Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompiledQuery.cs
- GrammarBuilderRuleRef.cs
- RelationshipConstraintValidator.cs
- XmlMapping.cs
- BindingList.cs
- Trace.cs
- Hyperlink.cs
- AddingNewEventArgs.cs
- CSharpCodeProvider.cs
- ProcessHostConfigUtils.cs
- DbConnectionPool.cs
- ContentValidator.cs
- XamlGridLengthSerializer.cs
- sqlinternaltransaction.cs
- SByteStorage.cs
- keycontainerpermission.cs
- ProcessHostFactoryHelper.cs
- GetPageNumberCompletedEventArgs.cs
- WinHttpWebProxyFinder.cs
- PersonalizationStateInfoCollection.cs
- JpegBitmapEncoder.cs
- ResourceAttributes.cs
- ImageMetadata.cs
- AutoResizedEvent.cs
- EngineSite.cs
- ArrayWithOffset.cs
- AsymmetricKeyExchangeDeformatter.cs
- ObjectHandle.cs
- SuppressIldasmAttribute.cs
- log.cs
- _NegoState.cs
- SelectorAutomationPeer.cs
- EpmCustomContentSerializer.cs
- WindowsStatusBar.cs
- _CommandStream.cs
- X509ClientCertificateAuthentication.cs
- CaseInsensitiveComparer.cs
- LinkedResource.cs
- DbException.cs
- StackBuilderSink.cs
- OutputBuffer.cs
- SQLInt32.cs
- CodeTypeReferenceExpression.cs
- Preprocessor.cs
- DocumentsTrace.cs
- Control.cs
- _Rfc2616CacheValidators.cs
- LoadRetryAsyncResult.cs
- ScriptResourceHandler.cs
- View.cs
- TiffBitmapEncoder.cs
- ValueTypeFixupInfo.cs
- DefaultClaimSet.cs
- SiteMapHierarchicalDataSourceView.cs
- ConfigXmlReader.cs
- DbBuffer.cs
- AuthStoreRoleProvider.cs
- XsdCachingReader.cs
- DecoderFallback.cs
- RoleService.cs
- CssTextWriter.cs
- StandardCommandToolStripMenuItem.cs
- LocationSectionRecord.cs
- OleDbRowUpdatingEvent.cs
- DataGridLinkButton.cs
- CommandManager.cs
- SendReply.cs
- PathSegment.cs
- BuildResult.cs
- Delegate.cs
- EntityDataSourceDataSelection.cs
- QilInvokeEarlyBound.cs
- MembershipPasswordException.cs
- IncrementalReadDecoders.cs
- FileLevelControlBuilderAttribute.cs
- InvalidOleVariantTypeException.cs
- WebPartAddingEventArgs.cs
- LineBreakRecord.cs
- XamlFigureLengthSerializer.cs
- CommandArguments.cs
- NominalTypeEliminator.cs
- BatchServiceHost.cs
- DetailsViewInsertedEventArgs.cs
- AssemblyInfo.cs
- MissingManifestResourceException.cs
- XmlChoiceIdentifierAttribute.cs
- EntityViewGenerationAttribute.cs
- ImageCodecInfo.cs
- ListViewItem.cs
- FtpWebResponse.cs
- StorageMappingItemCollection.cs
- BigInt.cs
- Utils.cs
- DescendantQuery.cs
- ReversePositionQuery.cs
- OrderByQueryOptionExpression.cs
- ChannelAcceptor.cs
- HandleRef.cs
- HttpHandlersSection.cs
- FixedSOMContainer.cs