Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Core.Presentation / System / Activities / Core / Presentation / ComboBoxHelper.cs / 1305376 / ComboBoxHelper.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Core.Presentation { using System.Windows.Controls; static class ComboBoxHelper { public static bool ShouldFilterUnnecessaryComboBoxEvent(ComboBox comboBox) { return comboBox != null && comboBox.IsDropDownOpen; } public static void SynchronizeComboBoxSelection(ComboBox comboBox, string value) { foreach (string item in comboBox.Items) { if (string.Equals(item, value)) { comboBox.SelectedItem = item; return; } } comboBox.SelectedIndex = -1; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NonParentingControl.cs
- CheckBoxRenderer.cs
- TableItemStyle.cs
- GlyphShapingProperties.cs
- WebPart.cs
- ListBoxItemWrapperAutomationPeer.cs
- AttributedMetaModel.cs
- SizeLimitedCache.cs
- AddInDeploymentState.cs
- NumberAction.cs
- StylusPointPropertyInfoDefaults.cs
- PropertyNames.cs
- TraceListener.cs
- WizardStepCollectionEditor.cs
- MessageSmuggler.cs
- CellLabel.cs
- ArcSegment.cs
- GacUtil.cs
- DependencySource.cs
- WindowAutomationPeer.cs
- AsymmetricKeyExchangeFormatter.cs
- IPPacketInformation.cs
- RuleSettings.cs
- PropertyMetadata.cs
- DependencyObject.cs
- OleDbRowUpdatedEvent.cs
- ColorBlend.cs
- OleDbEnumerator.cs
- XsltLoader.cs
- RoleBoolean.cs
- SmiContextFactory.cs
- BinaryObjectWriter.cs
- TreeViewTemplateSelector.cs
- LinkClickEvent.cs
- ChannelParameterCollection.cs
- SamlDelegatingWriter.cs
- IsolatedStorageFile.cs
- ListSurrogate.cs
- SiteMembershipCondition.cs
- XmlWrappingReader.cs
- StrokeFIndices.cs
- TreeViewImageIndexConverter.cs
- DataObject.cs
- Helpers.cs
- EnvelopedPkcs7.cs
- QueryOpcode.cs
- HtmlSelectionListAdapter.cs
- TypeBuilder.cs
- IdnElement.cs
- TextDpi.cs
- XmlParser.cs
- FieldNameLookup.cs
- ForwardPositionQuery.cs
- ProvideValueServiceProvider.cs
- ColumnWidthChangingEvent.cs
- BoolExpr.cs
- SchemaElementDecl.cs
- BitmapEffectState.cs
- KoreanLunisolarCalendar.cs
- ActivityXRefConverter.cs
- WebEventTraceProvider.cs
- ProtocolsConfiguration.cs
- Graphics.cs
- ControlCollection.cs
- ProcessHostServerConfig.cs
- SystemIPv4InterfaceProperties.cs
- Literal.cs
- XmlDocumentSerializer.cs
- DBAsyncResult.cs
- KeyFrames.cs
- DataObject.cs
- PermissionListSet.cs
- SqlNodeTypeOperators.cs
- BookmarkNameHelper.cs
- KeyInfo.cs
- AspNetHostingPermission.cs
- DispatchChannelSink.cs
- InternalCache.cs
- ApplicationSettingsBase.cs
- Substitution.cs
- OletxResourceManager.cs
- Visual3D.cs
- SizeChangedInfo.cs
- XpsSerializerFactory.cs
- XmlDomTextWriter.cs
- UnaryExpression.cs
- JoinElimination.cs
- BitmapEffect.cs
- RSAPKCS1SignatureFormatter.cs
- Pair.cs
- ContainerParagraph.cs
- CheckBoxAutomationPeer.cs
- PolyLineSegment.cs
- ObjectQueryState.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SafeProcessHandle.cs
- DrawingAttributesDefaultValueFactory.cs
- DateTimeStorage.cs
- XmlCharacterData.cs
- QilFactory.cs