Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / DesignBindingEditor.cs / 1 / DesignBindingEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.Design.DesignBindingEditor..ctor()")] namespace System.Windows.Forms.Design { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Design; internal class DesignBindingEditor : UITypeEditor { private DesignBindingPicker designBindingPicker; public override bool IsDropDownResizable { get { return true; } } public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider != null) { if (designBindingPicker == null) { designBindingPicker = new DesignBindingPicker(); } value = designBindingPicker.Pick(context, provider, true, /* showDataSources */ true, /* showDataMembers */ false, /* selectListMembers */ null, String.Empty, (DesignBinding) value); } return value; } public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.DropDown; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LineVisual.cs
- HttpWriter.cs
- ConfigXmlWhitespace.cs
- StorageAssociationSetMapping.cs
- DataProtection.cs
- ConsoleTraceListener.cs
- FontDialog.cs
- SqlCommandSet.cs
- ExtensionSimplifierMarkupObject.cs
- KeyInterop.cs
- BadImageFormatException.cs
- Button.cs
- COM2ColorConverter.cs
- IdnElement.cs
- DataSourceCacheDurationConverter.cs
- StandardCommandToolStripMenuItem.cs
- RegexRunnerFactory.cs
- QueryResult.cs
- Latin1Encoding.cs
- BinHexEncoder.cs
- WeakHashtable.cs
- SoapIgnoreAttribute.cs
- PerfService.cs
- UnsafePeerToPeerMethods.cs
- HtmlObjectListAdapter.cs
- CompareValidator.cs
- SqlDataSourceView.cs
- CursorConverter.cs
- Vector3DKeyFrameCollection.cs
- fixedPageContentExtractor.cs
- ToolStripStatusLabel.cs
- DataSourceControlBuilder.cs
- PathGeometry.cs
- MasterPage.cs
- DataGridClipboardCellContent.cs
- ListViewSelectEventArgs.cs
- DocumentGridPage.cs
- ErrorFormatterPage.cs
- XmlSchemaIdentityConstraint.cs
- EncryptedKeyIdentifierClause.cs
- MetaModel.cs
- RelationshipDetailsCollection.cs
- JoinCqlBlock.cs
- TdsParserStaticMethods.cs
- InitializationEventAttribute.cs
- AppSettingsExpressionBuilder.cs
- XmlNodeList.cs
- WindowsTab.cs
- ReferenceConverter.cs
- DynamicPropertyHolder.cs
- WebHttpBinding.cs
- DirectionalLight.cs
- ArgIterator.cs
- ALinqExpressionVisitor.cs
- FileUtil.cs
- Relationship.cs
- Light.cs
- Vector3D.cs
- InputProcessorProfilesLoader.cs
- PropertyInfoSet.cs
- _IPv6Address.cs
- StylusPlugInCollection.cs
- DataAccessor.cs
- OrderByQueryOptionExpression.cs
- Blend.cs
- DetailsViewInsertEventArgs.cs
- ManualResetEvent.cs
- Qualifier.cs
- CompilationPass2Task.cs
- DataGridViewRowConverter.cs
- BasicKeyConstraint.cs
- UrlMappingsSection.cs
- COM2Properties.cs
- ScalarType.cs
- TabletDeviceInfo.cs
- PrePrepareMethodAttribute.cs
- BezierSegment.cs
- ExceptionNotification.cs
- IisTraceWebEventProvider.cs
- uribuilder.cs
- ElementHost.cs
- DoubleStorage.cs
- Wizard.cs
- StoreAnnotationsMap.cs
- CustomCategoryAttribute.cs
- CodeDelegateInvokeExpression.cs
- ClientType.cs
- DefaultSection.cs
- HttpMethodAttribute.cs
- FileAuthorizationModule.cs
- DataGridViewCellMouseEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- StringConcat.cs
- ISO2022Encoding.cs
- PerformanceCounterLib.cs
- cookiecontainer.cs
- SortedList.cs
- ReadOnlyDataSource.cs
- RtfControls.cs
- ReceiveContext.cs