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
- EventHandlersDesigner.cs
- OperationCanceledException.cs
- AnimationLayer.cs
- unsafenativemethodsother.cs
- StylusButtonEventArgs.cs
- EntityContainerEmitter.cs
- WhileDesigner.cs
- XmlSchemaValidationException.cs
- MobileControlBuilder.cs
- IconEditor.cs
- AnnotationAdorner.cs
- HttpBrowserCapabilitiesBase.cs
- XomlCompilerHelpers.cs
- BaseHashHelper.cs
- _ProxyChain.cs
- FillBehavior.cs
- ProcessInfo.cs
- DataSetUtil.cs
- HttpListenerRequest.cs
- TableRowCollection.cs
- CalendarAutomationPeer.cs
- manifestimages.cs
- ChangeDirector.cs
- ComboBoxHelper.cs
- ContentType.cs
- SystemTcpStatistics.cs
- CorrelationQuery.cs
- ShapingEngine.cs
- BufferedStream2.cs
- DiagnosticTraceSource.cs
- MetabaseReader.cs
- Int32CollectionConverter.cs
- DescendantOverDescendantQuery.cs
- BamlTreeMap.cs
- Int32.cs
- LineServices.cs
- CodeNamespaceCollection.cs
- MembershipAdapter.cs
- DtdParser.cs
- XmlIlGenerator.cs
- AuthenticationModuleElement.cs
- ParameterBuilder.cs
- WindowsToolbarItemAsMenuItem.cs
- SqlBuffer.cs
- DocumentEventArgs.cs
- StreamGeometryContext.cs
- SmtpCommands.cs
- ACE.cs
- ClientConfigurationHost.cs
- InputEventArgs.cs
- ProfileProvider.cs
- X509Extension.cs
- WebBrowsableAttribute.cs
- FormsAuthenticationEventArgs.cs
- BulletedList.cs
- BodyWriter.cs
- ScrollPatternIdentifiers.cs
- ListenerElementsCollection.cs
- TableLayoutPanelBehavior.cs
- Configuration.cs
- WizardPanel.cs
- AssemblyResourceLoader.cs
- GroupItem.cs
- CodeSnippetTypeMember.cs
- MultiTrigger.cs
- AstTree.cs
- AssemblyCollection.cs
- XmlSerializerVersionAttribute.cs
- AspNetHostingPermission.cs
- CompositeScriptReferenceEventArgs.cs
- DataViewManager.cs
- Rotation3D.cs
- DefinitionUpdate.cs
- PointAnimation.cs
- DynamicUpdateCommand.cs
- ThreadExceptionDialog.cs
- BatchWriter.cs
- PolicyException.cs
- EventMappingSettings.cs
- XmlDomTextWriter.cs
- ColorAnimationUsingKeyFrames.cs
- ListViewTableRow.cs
- CatalogPartCollection.cs
- VariableQuery.cs
- SqlTypeSystemProvider.cs
- CacheForPrimitiveTypes.cs
- Transform.cs
- CodeParameterDeclarationExpression.cs
- ArithmeticLiteral.cs
- XamlBrushSerializer.cs
- SerializerDescriptor.cs
- XmlSortKeyAccumulator.cs
- SoapTypeAttribute.cs
- DataControlCommands.cs
- CursorConverter.cs
- RoleBoolean.cs
- EntityModelBuildProvider.cs
- HttpConfigurationContext.cs
- XmlSchemaAttribute.cs
- EntityRecordInfo.cs