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
- ListViewTableRow.cs
- sqlstateclientmanager.cs
- NameValuePair.cs
- UxThemeWrapper.cs
- QuadraticBezierSegment.cs
- CustomDictionarySources.cs
- ClientUrlResolverWrapper.cs
- HostedHttpTransportManager.cs
- OleDbCommandBuilder.cs
- NotifyCollectionChangedEventArgs.cs
- DesignerOptions.cs
- AsyncSerializedWorker.cs
- serverconfig.cs
- StyleCollection.cs
- IssuanceTokenProviderState.cs
- ProxyWebPartConnectionCollection.cs
- ColorInterpolationModeValidation.cs
- FileSystemEventArgs.cs
- HtmlInputButton.cs
- XmlSchemaDatatype.cs
- Thumb.cs
- HttpInputStream.cs
- SizeAnimationClockResource.cs
- RegexMatchCollection.cs
- ComboBox.cs
- GeneralTransform3D.cs
- ZipPackagePart.cs
- EnumerableCollectionView.cs
- EqualityComparer.cs
- ConfigurationValue.cs
- NativeMethodsOther.cs
- RecognizedPhrase.cs
- ComplexPropertyEntry.cs
- ResourceCodeDomSerializer.cs
- VerificationException.cs
- ChameleonKey.cs
- XmlWhitespace.cs
- DescendantQuery.cs
- NamespaceCollection.cs
- RequestCacheManager.cs
- SystemNetworkInterface.cs
- LOSFormatter.cs
- ActivatableWorkflowsQueryResult.cs
- BaseAsyncResult.cs
- HelpKeywordAttribute.cs
- MouseCaptureWithinProperty.cs
- AspNetCompatibilityRequirementsMode.cs
- InstanceData.cs
- OdbcException.cs
- FrameworkContentElement.cs
- Tile.cs
- ComponentChangedEvent.cs
- TypeLibConverter.cs
- ResumeStoryboard.cs
- Switch.cs
- BackgroundWorker.cs
- documentation.cs
- Imaging.cs
- SingleTagSectionHandler.cs
- BatchWriter.cs
- PingReply.cs
- SqlReferenceCollection.cs
- SubclassTypeValidator.cs
- ProfileSettings.cs
- EventSinkHelperWriter.cs
- iisPickupDirectory.cs
- StringReader.cs
- PersistenceTypeAttribute.cs
- TableLayoutPanelCellPosition.cs
- TimeSpanOrInfiniteConverter.cs
- RawTextInputReport.cs
- DateTimeConstantAttribute.cs
- COM2IPerPropertyBrowsingHandler.cs
- WpfKnownMemberInvoker.cs
- IdentityNotMappedException.cs
- StringBlob.cs
- GuidelineCollection.cs
- IPGlobalProperties.cs
- ControlPaint.cs
- PositiveTimeSpanValidator.cs
- UIElement3D.cs
- AttributeEmitter.cs
- objectresult_tresulttype.cs
- TimeSpanConverter.cs
- ItemsControlAutomationPeer.cs
- XmlSchemaInclude.cs
- Boolean.cs
- XmlSchemaAppInfo.cs
- ImageMap.cs
- EmbeddedMailObjectsCollection.cs
- SQLInt64.cs
- SerialErrors.cs
- ExternalFile.cs
- TrustLevel.cs
- ToolStripDropDownMenu.cs
- Calendar.cs
- PresentationAppDomainManager.cs
- ElementMarkupObject.cs
- CodeCatchClause.cs
- BindingObserver.cs