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
- Range.cs
- AssertUtility.cs
- TypeLibConverter.cs
- WebPartZone.cs
- FastPropertyAccessor.cs
- Vector3DAnimation.cs
- PropertyGridView.cs
- SmiEventStream.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- MouseDevice.cs
- ApplicationException.cs
- ControlIdConverter.cs
- MapPathBasedVirtualPathProvider.cs
- FamilyCollection.cs
- ServiceObjectContainer.cs
- DeviceContext2.cs
- SimpleWorkerRequest.cs
- ContextMenuStrip.cs
- ToolStripItem.cs
- StickyNoteHelper.cs
- Point3DAnimationBase.cs
- MessageLoggingElement.cs
- XmlPropertyBag.cs
- XmlSchemaAnnotated.cs
- SimplePropertyEntry.cs
- SqlCommandSet.cs
- DrawingContextWalker.cs
- ChannelPoolSettings.cs
- LayoutUtils.cs
- GlobalizationAssembly.cs
- ExpressionContext.cs
- ADConnectionHelper.cs
- x509utils.cs
- KeySplineConverter.cs
- ColorContext.cs
- CustomServiceCredentials.cs
- FunctionImportElement.cs
- ObjectFullSpanRewriter.cs
- Atom10FormatterFactory.cs
- ServiceContractAttribute.cs
- WebDisplayNameAttribute.cs
- CompositeKey.cs
- SafeTokenHandle.cs
- MarshalDirectiveException.cs
- CodeEntryPointMethod.cs
- RegexStringValidator.cs
- DataGridTableCollection.cs
- PropertyGridDesigner.cs
- RedistVersionInfo.cs
- shaper.cs
- MemberDescriptor.cs
- AnimationException.cs
- NetworkInterface.cs
- ColorPalette.cs
- SqlFunctionAttribute.cs
- RuntimeArgumentHandle.cs
- HtmlForm.cs
- OleDbInfoMessageEvent.cs
- CompiledQuery.cs
- IRCollection.cs
- ManifestResourceInfo.cs
- BinaryMessageFormatter.cs
- Lasso.cs
- SmtpAuthenticationManager.cs
- SoapMessage.cs
- CodeAttributeDeclarationCollection.cs
- Internal.cs
- HighlightVisual.cs
- StorageAssociationSetMapping.cs
- BufferModeSettings.cs
- CreateBookmarkScope.cs
- localization.cs
- DeviceContexts.cs
- MetafileHeaderWmf.cs
- SortedDictionary.cs
- OSEnvironmentHelper.cs
- CapabilitiesPattern.cs
- SimplePropertyEntry.cs
- ValidatedControlConverter.cs
- QilReplaceVisitor.cs
- ThaiBuddhistCalendar.cs
- AppDomain.cs
- SignatureHelper.cs
- DynamicResourceExtensionConverter.cs
- DockProviderWrapper.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AutomationPeer.cs
- DocumentViewer.cs
- SystemEvents.cs
- FileVersionInfo.cs
- NativeMethodsOther.cs
- CategoryValueConverter.cs
- RecognizedWordUnit.cs
- TagPrefixAttribute.cs
- ImageIndexConverter.cs
- ListViewHitTestInfo.cs
- InvokeProviderWrapper.cs
- XsltContext.cs
- GridViewPageEventArgs.cs
- HttpRawResponse.cs