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
- ReachObjectContext.cs
- InputManager.cs
- BufferModeSettings.cs
- RegistryKey.cs
- AppDomainProtocolHandler.cs
- GridViewDesigner.cs
- UnsafeNativeMethods.cs
- DotAtomReader.cs
- BufferedGraphics.cs
- DependencyPropertyKey.cs
- SapiAttributeParser.cs
- DockPattern.cs
- CompressionTracing.cs
- ProfileSection.cs
- indexingfiltermarshaler.cs
- comcontractssection.cs
- DocumentViewerAutomationPeer.cs
- ChannelTokenTypeConverter.cs
- ColumnClickEvent.cs
- SmiRequestExecutor.cs
- NumberFormatter.cs
- DataGridViewDesigner.cs
- DiscoveryClientDocuments.cs
- MatrixCamera.cs
- PropagationProtocolsTracing.cs
- ExpressionQuoter.cs
- OdbcConnectionHandle.cs
- SocketAddress.cs
- OperationCanceledException.cs
- TypeSemantics.cs
- listitem.cs
- sqlmetadatafactory.cs
- HtmlElementEventArgs.cs
- BypassElement.cs
- Rect.cs
- LineMetrics.cs
- RuleElement.cs
- DocumentXPathNavigator.cs
- TableHeaderCell.cs
- ContactManager.cs
- RuntimeComponentFilter.cs
- ParameterCollection.cs
- IsolatedStoragePermission.cs
- SafeFindHandle.cs
- RelationshipFixer.cs
- ValidateNames.cs
- DataGridViewAdvancedBorderStyle.cs
- XmlCharCheckingWriter.cs
- AuthenticationManager.cs
- RotateTransform.cs
- XpsFilter.cs
- BatchWriter.cs
- MeasurementDCInfo.cs
- ImageCodecInfoPrivate.cs
- Int16KeyFrameCollection.cs
- OleDbTransaction.cs
- Compensation.cs
- CacheMemory.cs
- LexicalChunk.cs
- UrlMappingsModule.cs
- ConvertersCollection.cs
- ColumnMapProcessor.cs
- ImageDrawing.cs
- Menu.cs
- PropertyTab.cs
- X509RawDataKeyIdentifierClause.cs
- TdsParser.cs
- XmlObjectSerializerReadContextComplex.cs
- DataObjectFieldAttribute.cs
- FileUtil.cs
- FixedBufferAttribute.cs
- FileIOPermission.cs
- ProcessActivityTreeOptions.cs
- DockEditor.cs
- DropShadowBitmapEffect.cs
- ExecutionContext.cs
- TransactionBehavior.cs
- Visual3DCollection.cs
- DescriptionAttribute.cs
- EventData.cs
- GreenMethods.cs
- RotateTransform3D.cs
- BackgroundFormatInfo.cs
- AndCondition.cs
- EventSourceCreationData.cs
- PreviousTrackingServiceAttribute.cs
- Part.cs
- DecimalAnimationUsingKeyFrames.cs
- TypeUtil.cs
- LoginUtil.cs
- DllNotFoundException.cs
- WinFormsComponentEditor.cs
- ParseChildrenAsPropertiesAttribute.cs
- TokenBasedSet.cs
- DataListDesigner.cs
- SqlParameterCollection.cs
- SafeRightsManagementQueryHandle.cs
- CodeEventReferenceExpression.cs
- ClientUtils.cs
- GiveFeedbackEventArgs.cs