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
- DeclarativeCatalogPart.cs
- MaskInputRejectedEventArgs.cs
- ContainerUIElement3D.cs
- WSDualHttpSecurityElement.cs
- StorageConditionPropertyMapping.cs
- RTLAwareMessageBox.cs
- HtmlInputReset.cs
- MethodExpression.cs
- WorkBatch.cs
- PackagePart.cs
- BoundField.cs
- UxThemeWrapper.cs
- TouchEventArgs.cs
- TextContainerChangeEventArgs.cs
- DropSource.cs
- NameObjectCollectionBase.cs
- RootProfilePropertySettingsCollection.cs
- SoundPlayer.cs
- TrackingAnnotationCollection.cs
- DateBoldEvent.cs
- DataSourceCache.cs
- ControlBuilder.cs
- BamlTreeMap.cs
- ConfigurationValidatorAttribute.cs
- PointAnimationBase.cs
- WindowsHyperlink.cs
- VersionedStreamOwner.cs
- NumberFunctions.cs
- PseudoWebRequest.cs
- Merger.cs
- CultureTableRecord.cs
- AmbientProperties.cs
- Int32.cs
- DrawingImage.cs
- FamilyMap.cs
- HandoffBehavior.cs
- RectangleGeometry.cs
- Lock.cs
- LineSegment.cs
- ParameterToken.cs
- TimeIntervalCollection.cs
- GridViewSortEventArgs.cs
- ListSortDescriptionCollection.cs
- ListViewDataItem.cs
- _LocalDataStoreMgr.cs
- ScrollableControl.cs
- EdgeModeValidation.cs
- FunctionOverloadResolver.cs
- CodeConstructor.cs
- WebPartTransformerCollection.cs
- TraceInternal.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TraceContext.cs
- XPathChildIterator.cs
- HiddenFieldPageStatePersister.cs
- DelegatedStream.cs
- ScriptControlDescriptor.cs
- PassportAuthenticationEventArgs.cs
- Timer.cs
- ContainerFilterService.cs
- StringOutput.cs
- DisplayMemberTemplateSelector.cs
- PageContentCollection.cs
- DataBindingExpressionBuilder.cs
- OracleParameter.cs
- WeakHashtable.cs
- FileEnumerator.cs
- HttpAsyncResult.cs
- SqlMethodAttribute.cs
- DecimalStorage.cs
- Attachment.cs
- DbMetaDataCollectionNames.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TextChange.cs
- FrameworkTextComposition.cs
- EntityModelSchemaGenerator.cs
- ValidatorCompatibilityHelper.cs
- PolygonHotSpot.cs
- Translator.cs
- XmlWrappingReader.cs
- Graph.cs
- ToggleButton.cs
- MetadataItemCollectionFactory.cs
- LinkLabel.cs
- RemoteWebConfigurationHostServer.cs
- Propagator.ExtentPlaceholderCreator.cs
- ColumnHeaderCollectionEditor.cs
- XmlSchemaImporter.cs
- DifferencingCollection.cs
- ModuleElement.cs
- SqlNodeAnnotation.cs
- FullTrustAssemblyCollection.cs
- StringReader.cs
- SqlDataReaderSmi.cs
- _ContextAwareResult.cs
- HandleRef.cs
- AssemblyInfo.cs
- UnauthorizedWebPart.cs
- DragDeltaEventArgs.cs
- Bind.cs