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
- ManagementQuery.cs
- XamlReaderHelper.cs
- PersistenceProvider.cs
- EntityCommand.cs
- HttpHeaderCollection.cs
- SessionSwitchEventArgs.cs
- SessionStateSection.cs
- DataObject.cs
- TemplateLookupAction.cs
- ValueOfAction.cs
- AggregateNode.cs
- exports.cs
- IApplicationTrustManager.cs
- FunctionOverloadResolver.cs
- StateItem.cs
- HttpCookie.cs
- ServiceHostingEnvironment.cs
- ProvideValueServiceProvider.cs
- HttpsChannelListener.cs
- Itemizer.cs
- MultiDataTrigger.cs
- HotSpot.cs
- DataReceivedEventArgs.cs
- CacheHelper.cs
- EdgeModeValidation.cs
- XmlMembersMapping.cs
- SqlGenerator.cs
- GetLedgerRequest.cs
- CustomTokenProvider.cs
- VisualTreeHelper.cs
- RegexCapture.cs
- GetParentChain.cs
- ConfigXmlReader.cs
- RealizationDrawingContextWalker.cs
- PropertyToken.cs
- Facet.cs
- XappLauncher.cs
- GenericRootAutomationPeer.cs
- UICuesEvent.cs
- UnsafeNativeMethods.cs
- DbException.cs
- DropShadowEffect.cs
- XPathDocumentBuilder.cs
- BlurBitmapEffect.cs
- relpropertyhelper.cs
- httpstaticobjectscollection.cs
- RegisterResponseInfo.cs
- ButtonBase.cs
- DiagnosticTrace.cs
- AlternateViewCollection.cs
- Geometry.cs
- TranslateTransform.cs
- ImageCodecInfo.cs
- XmlObjectSerializerReadContextComplexJson.cs
- DSASignatureFormatter.cs
- WindowsAltTab.cs
- OracleSqlParser.cs
- DependencyPropertyDescriptor.cs
- Baml2006Reader.cs
- WindowsStatic.cs
- Label.cs
- HtmlFormWrapper.cs
- _Win32.cs
- DecimalAnimationUsingKeyFrames.cs
- DataTableTypeConverter.cs
- FixedFlowMap.cs
- CaseInsensitiveComparer.cs
- Color.cs
- ViewStateModeByIdAttribute.cs
- DataPagerFieldItem.cs
- MembershipValidatePasswordEventArgs.cs
- DynamicILGenerator.cs
- DocumentPageTextView.cs
- PersonalizablePropertyEntry.cs
- BuildProviderAppliesToAttribute.cs
- DynamicValidator.cs
- TokenBasedSetEnumerator.cs
- ActiveXSite.cs
- FormCollection.cs
- CodeAccessPermission.cs
- InternalConfigHost.cs
- _NestedMultipleAsyncResult.cs
- RecommendedAsConfigurableAttribute.cs
- GroupDescription.cs
- SecurityKeyType.cs
- ProjectionCamera.cs
- Oci.cs
- Visual3D.cs
- TextRunCache.cs
- NavigationService.cs
- SoundPlayerAction.cs
- SecureConversationServiceElement.cs
- FilteredSchemaElementLookUpTable.cs
- DataControlButton.cs
- SqlConnectionStringBuilder.cs
- CrossAppDomainChannel.cs
- StrongName.cs
- HttpModuleCollection.cs
- ExpressionCopier.cs
- StoreItemCollection.cs