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
- Error.cs
- ProxyHelper.cs
- MsmqIntegrationProcessProtocolHandler.cs
- Localizer.cs
- PauseStoryboard.cs
- MultiPartWriter.cs
- OptimisticConcurrencyException.cs
- _LocalDataStoreMgr.cs
- ItemsPresenter.cs
- CalculatedColumn.cs
- HttpWriter.cs
- DragCompletedEventArgs.cs
- XmlC14NWriter.cs
- DatePicker.cs
- HtmlTernaryTree.cs
- InputLangChangeRequestEvent.cs
- XmlDocumentFragment.cs
- Stack.cs
- EntitySet.cs
- FunctionUpdateCommand.cs
- BounceEase.cs
- TextElementEnumerator.cs
- TabControlCancelEvent.cs
- AutoFocusStyle.xaml.cs
- SqlDataReaderSmi.cs
- PropertyInfoSet.cs
- DataSourceHelper.cs
- mansign.cs
- WebRequestModuleElementCollection.cs
- WorkflowExecutor.cs
- TableParagraph.cs
- DiffuseMaterial.cs
- HelpKeywordAttribute.cs
- XmlTextReaderImplHelpers.cs
- TreeBuilder.cs
- ZeroOpNode.cs
- RecognizerStateChangedEventArgs.cs
- SystemInformation.cs
- ObjectPersistData.cs
- WebPartTransformerAttribute.cs
- UnknownWrapper.cs
- WorkItem.cs
- DataObjectPastingEventArgs.cs
- OperatingSystemVersionCheck.cs
- ClientUtils.cs
- DefaultPropertyAttribute.cs
- WebControlAdapter.cs
- XPathChildIterator.cs
- WebPartCollection.cs
- RequestCacheValidator.cs
- MaterializeFromAtom.cs
- QilBinary.cs
- TdsParserSessionPool.cs
- ExpressionNormalizer.cs
- IsolatedStorageFileStream.cs
- Models.cs
- ActivityExecutor.cs
- MultiSelector.cs
- FrameDimension.cs
- Trace.cs
- InlineObject.cs
- HttpPostClientProtocol.cs
- ToolStripSplitStackLayout.cs
- ParsedAttributeCollection.cs
- ObjectStateEntry.cs
- PageClientProxyGenerator.cs
- Grid.cs
- Security.cs
- PermissionRequestEvidence.cs
- MediaPlayer.cs
- Base64Encoder.cs
- EntityCommandExecutionException.cs
- XmlSchemaAttributeGroup.cs
- EdmComplexTypeAttribute.cs
- DocumentAutomationPeer.cs
- TextLineBreak.cs
- EntityReference.cs
- PrefixQName.cs
- PageParserFilter.cs
- Splitter.cs
- CLSCompliantAttribute.cs
- QilSortKey.cs
- WebInvokeAttribute.cs
- WebMessageEncoderFactory.cs
- ConfigXmlWhitespace.cs
- WebPartConnectVerb.cs
- ExtensionMethods.cs
- OutputCacheSettings.cs
- InfoCardKeyedHashAlgorithm.cs
- AuthenticatingEventArgs.cs
- TripleDES.cs
- XmlDocument.cs
- Int32CollectionValueSerializer.cs
- DateTimeConstantAttribute.cs
- TreeNodeBinding.cs
- PrintEvent.cs
- NumberSubstitution.cs
- DeflateInput.cs
- DeviceSpecificDesigner.cs
- HelpPage.cs