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
- cryptoapiTransform.cs
- SiteMapSection.cs
- FontFamilyConverter.cs
- GeneralTransformGroup.cs
- XPathAncestorQuery.cs
- EntityTypeEmitter.cs
- Update.cs
- ThrowHelper.cs
- Type.cs
- AuthenticationManager.cs
- Automation.cs
- XmlAttributeHolder.cs
- TextWriterTraceListener.cs
- ProxyWebPart.cs
- Condition.cs
- HtmlImage.cs
- MultitargetUtil.cs
- VectorKeyFrameCollection.cs
- OdbcParameterCollection.cs
- DataBoundControlActionList.cs
- ButtonAutomationPeer.cs
- EncodingDataItem.cs
- CultureInfo.cs
- DoubleConverter.cs
- EntityDataSourceChangingEventArgs.cs
- SafeFileMappingHandle.cs
- FileCodeGroup.cs
- ListComponentEditor.cs
- MenuScrollingVisibilityConverter.cs
- DashStyles.cs
- IdentityReference.cs
- DiffuseMaterial.cs
- _Events.cs
- XmlObjectSerializerWriteContextComplex.cs
- DecimalAnimationBase.cs
- GPRECTF.cs
- BamlLocalizableResourceKey.cs
- UserControlBuildProvider.cs
- LoadWorkflowAsyncResult.cs
- EmbeddedMailObjectsCollection.cs
- TreeViewImageIndexConverter.cs
- SqlCharStream.cs
- Converter.cs
- WsdlInspector.cs
- SettingsPropertyValueCollection.cs
- CSharpCodeProvider.cs
- Button.cs
- PrePostDescendentsWalker.cs
- SqlTopReducer.cs
- MaterializeFromAtom.cs
- DesignerCategoryAttribute.cs
- XmlMapping.cs
- X509ClientCertificateAuthentication.cs
- OutOfProcStateClientManager.cs
- BinaryWriter.cs
- DataGridToolTip.cs
- SubpageParaClient.cs
- EventlogProvider.cs
- ToolStripContainer.cs
- JapaneseLunisolarCalendar.cs
- EntityDataSourceStatementEditor.cs
- DataGridViewCell.cs
- DoWhile.cs
- TextTreeInsertUndoUnit.cs
- ZipIOFileItemStream.cs
- TypeUtils.cs
- AQNBuilder.cs
- NamedPermissionSet.cs
- ColorAnimation.cs
- ProxyFragment.cs
- ColorConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- LinkedResource.cs
- DataGridViewColumnTypeEditor.cs
- XmlArrayAttribute.cs
- SqlBulkCopyColumnMapping.cs
- _AcceptOverlappedAsyncResult.cs
- PackageRelationship.cs
- BackgroundWorker.cs
- StylusPointPropertyInfoDefaults.cs
- InvokePattern.cs
- AutoResetEvent.cs
- InstanceOwner.cs
- DictionaryEntry.cs
- XmlCodeExporter.cs
- EndPoint.cs
- HtmlInputButton.cs
- WebPartConnectionsCancelVerb.cs
- UInt32Converter.cs
- CompensatableTransactionScopeActivity.cs
- DiscoveryClientChannelBase.cs
- RegistrationServices.cs
- QueryFunctions.cs
- MailMessageEventArgs.cs
- XPathParser.cs
- InfoCardConstants.cs
- WebPartChrome.cs
- WizardPanelChangingEventArgs.cs
- ConfigurationStrings.cs
- HashCryptoHandle.cs