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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Graphics.cs
- SQLBinary.cs
- FileRecordSequenceCompletedAsyncResult.cs
- DirectoryInfo.cs
- BadImageFormatException.cs
- ItemTypeToolStripMenuItem.cs
- System.Data.OracleClient_BID.cs
- AdornerLayer.cs
- TableHeaderCell.cs
- CaseInsensitiveComparer.cs
- EdmItemCollection.cs
- WebServiceData.cs
- PerformanceCounterCategory.cs
- LogReservationCollection.cs
- ContentPlaceHolder.cs
- NullableLongSumAggregationOperator.cs
- DesignerTransaction.cs
- XmlSchemaAny.cs
- TypeBrowser.xaml.cs
- Helper.cs
- BitmapFrameEncode.cs
- BCryptSafeHandles.cs
- CatalogPartCollection.cs
- DataGridViewBand.cs
- FrameworkTextComposition.cs
- MimeBasePart.cs
- EntityDataSourceViewSchema.cs
- MeasurementDCInfo.cs
- ResourceReferenceExpressionConverter.cs
- AssemblyInfo.cs
- D3DImage.cs
- CalendarModeChangedEventArgs.cs
- XmlExtensionFunction.cs
- XmlSchemaProviderAttribute.cs
- PriorityBindingExpression.cs
- ItemCheckEvent.cs
- FormViewPageEventArgs.cs
- Compiler.cs
- ISAPIWorkerRequest.cs
- VSWCFServiceContractGenerator.cs
- LinqDataSourceContextEventArgs.cs
- ApplicationServiceHelper.cs
- RuntimeHelpers.cs
- StateWorkerRequest.cs
- HttpHeaderCollection.cs
- XmlQueryOutput.cs
- SiteMapPath.cs
- GB18030Encoding.cs
- Internal.cs
- WebPartDeleteVerb.cs
- ContainerSelectorGlyph.cs
- ThemeInfoAttribute.cs
- mansign.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Triplet.cs
- Page.cs
- ConfigurationElementCollection.cs
- ContainerFilterService.cs
- documentsequencetextpointer.cs
- _HelperAsyncResults.cs
- AppDomainProtocolHandler.cs
- SynchronizationContext.cs
- ClosableStream.cs
- TextBoxRenderer.cs
- GB18030Encoding.cs
- ClientApiGenerator.cs
- StreamMarshaler.cs
- ProcessHostMapPath.cs
- AdornerLayer.cs
- ClaimTypeRequirement.cs
- Operator.cs
- ToolStripControlHost.cs
- DateTimeOffsetConverter.cs
- CodeTypeReferenceExpression.cs
- TemplatedMailWebEventProvider.cs
- SessionEndingEventArgs.cs
- VerticalAlignConverter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- TheQuery.cs
- XmlSchemaObject.cs
- UdpTransportSettings.cs
- RSACryptoServiceProvider.cs
- DataExpression.cs
- ValueConversionAttribute.cs
- ToolBarButtonClickEvent.cs
- DocumentSequence.cs
- ControlAdapter.cs
- DBConcurrencyException.cs
- AppDomain.cs
- ConfigurationStrings.cs
- ErrorStyle.cs
- HashHelper.cs
- CodeGenerator.cs
- dtdvalidator.cs
- DataGridCell.cs
- ListViewEditEventArgs.cs
- GcHandle.cs
- GridItemPatternIdentifiers.cs
- OleDbRowUpdatedEvent.cs
- AttributeSetAction.cs