Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FlowDocumentView.cs
- DataGridViewElement.cs
- ItemList.cs
- XmlRawWriterWrapper.cs
- FixedSOMImage.cs
- DataExpression.cs
- TagPrefixInfo.cs
- ToggleButton.cs
- GroupItemAutomationPeer.cs
- AutoGeneratedField.cs
- RegionData.cs
- Utils.cs
- ResourceReferenceKeyNotFoundException.cs
- RenderingBiasValidation.cs
- DesignerTransaction.cs
- ObjectTag.cs
- FirstMatchCodeGroup.cs
- GridViewColumnCollection.cs
- FontNamesConverter.cs
- ActiveXContainer.cs
- RedirectionProxy.cs
- EnumConverter.cs
- MetadataCache.cs
- ControlCollection.cs
- TabControl.cs
- XmlWrappingWriter.cs
- DefaultPrintController.cs
- AllowedAudienceUriElement.cs
- DesignTimeVisibleAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- Buffer.cs
- EdmItemCollection.cs
- ProfileSection.cs
- TreeView.cs
- Geometry.cs
- EmptyReadOnlyDictionaryInternal.cs
- HtmlInputCheckBox.cs
- ClientSettingsSection.cs
- KerberosTicketHashIdentifierClause.cs
- Profiler.cs
- ResourceReferenceExpression.cs
- PerfCounters.cs
- StringAnimationUsingKeyFrames.cs
- StringUtil.cs
- RuntimeHelpers.cs
- _HeaderInfoTable.cs
- returneventsaver.cs
- EdmSchemaAttribute.cs
- RightNameExpirationInfoPair.cs
- GeneralTransform3DTo2DTo3D.cs
- StatusBar.cs
- AnnotationResourceChangedEventArgs.cs
- RouteValueExpressionBuilder.cs
- Panel.cs
- Rect3D.cs
- QueryCreatedEventArgs.cs
- OleDbSchemaGuid.cs
- MetadataItem.cs
- PropertyConverter.cs
- ImageConverter.cs
- GridView.cs
- DataGridViewRowStateChangedEventArgs.cs
- MetadataFile.cs
- TypedTableGenerator.cs
- ClientSponsor.cs
- CompiledRegexRunnerFactory.cs
- RestClientProxyHandler.cs
- infer.cs
- SqlUserDefinedTypeAttribute.cs
- SoapAttributeOverrides.cs
- Renderer.cs
- RadioButton.cs
- BreakRecordTable.cs
- MimeReflector.cs
- HitTestFilterBehavior.cs
- NavigationProgressEventArgs.cs
- NativeWindow.cs
- InstanceDataCollection.cs
- SafeViewOfFileHandle.cs
- KeyFrames.cs
- SqlCacheDependencySection.cs
- SliderAutomationPeer.cs
- GridViewRowPresenter.cs
- CalendarData.cs
- CodeParameterDeclarationExpressionCollection.cs
- ReflectionPermission.cs
- XmlNotation.cs
- ParserExtension.cs
- RootBrowserWindowAutomationPeer.cs
- PeerNameRecordCollection.cs
- DataGridRow.cs
- ClientProxyGenerator.cs
- TableCellsCollectionEditor.cs
- Label.cs
- ParseNumbers.cs
- D3DImage.cs
- JsonXmlDataContract.cs
- XXXOnTypeBuilderInstantiation.cs
- OdbcHandle.cs
- PeerCollaboration.cs