Code:
/ FX-1434 / FX-1434 / 1.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
- ChildTable.cs
- ReflectionPermission.cs
- DBCommand.cs
- SortedList.cs
- EditorBrowsableAttribute.cs
- BindingCompleteEventArgs.cs
- ArcSegment.cs
- cookiecontainer.cs
- TogglePatternIdentifiers.cs
- ConstantSlot.cs
- ItemCollection.cs
- Cursor.cs
- DayRenderEvent.cs
- DateTimeOffsetAdapter.cs
- FormsAuthenticationUserCollection.cs
- FilterQuery.cs
- ActivityXamlServices.cs
- COM2PropertyPageUITypeConverter.cs
- LocatorGroup.cs
- SoapServerMessage.cs
- PeerTransportBindingElement.cs
- VoiceInfo.cs
- XmlElementAttribute.cs
- FormsAuthenticationUser.cs
- XmlSchemaGroup.cs
- SafeBitVector32.cs
- LeafCellTreeNode.cs
- PageVisual.cs
- GradientBrush.cs
- UserNameSecurityTokenParameters.cs
- ParameterCollection.cs
- FolderBrowserDialog.cs
- WebPartsPersonalizationAuthorization.cs
- AnchoredBlock.cs
- MexTcpBindingElement.cs
- LocalizeDesigner.cs
- NavigateUrlConverter.cs
- DataGridParentRows.cs
- Repeater.cs
- InfoCardSymmetricAlgorithm.cs
- TextRunCache.cs
- PanelStyle.cs
- securitycriticaldataClass.cs
- codemethodreferenceexpression.cs
- Closure.cs
- CatalogPartChrome.cs
- TemplatedWizardStep.cs
- CharacterMetrics.cs
- QilReference.cs
- SQLResource.cs
- KeyboardNavigation.cs
- Timer.cs
- AddressingVersion.cs
- DataBoundControl.cs
- SocketException.cs
- Overlapped.cs
- DataPointer.cs
- SrgsText.cs
- SerialErrors.cs
- DataGridRowEventArgs.cs
- StoryFragments.cs
- Wizard.cs
- CDSCollectionETWBCLProvider.cs
- StylusButtonCollection.cs
- XmlSerializerFaultFormatter.cs
- DataList.cs
- AnonymousIdentificationModule.cs
- Geometry3D.cs
- ActivityDefaults.cs
- ClientRuntimeConfig.cs
- XmlDigitalSignatureProcessor.cs
- SqlUserDefinedTypeAttribute.cs
- HtmlEncodedRawTextWriter.cs
- IImplicitResourceProvider.cs
- HMAC.cs
- MexTcpBindingElement.cs
- InheritanceAttribute.cs
- Point3DAnimationBase.cs
- Serializer.cs
- __Error.cs
- FormatterConverter.cs
- ObjectCloneHelper.cs
- FacetEnabledSchemaElement.cs
- BooleanConverter.cs
- MouseWheelEventArgs.cs
- Stack.cs
- RTLAwareMessageBox.cs
- WindowsListView.cs
- FilteredXmlReader.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- UnicodeEncoding.cs
- BitmapDownload.cs
- Publisher.cs
- EventRouteFactory.cs
- ConfigurationManagerHelper.cs
- StatusBar.cs
- WindowsPrincipal.cs
- EncryptedType.cs
- StateMachineWorkflowDesigner.cs
- MetadataCacheItem.cs