Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DeferredSelectedIndexReference.cs / 1305600 / DeferredSelectedIndexReference.cs
//---------------------------------------------------------------------------- // // File: DeferredSelectedIndexReference.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Proxy object passed to the property system to delay load // Selector.SelectedIndex values. // //--------------------------------------------------------------------------- using System.Windows.Controls.Primitives; namespace System.Windows.Controls { // Proxy object passed to the property system to delay load Selector.SelectedIndex // values. internal class DeferredSelectedIndexReference : DeferredReference { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal DeferredSelectedIndexReference(Selector selector) { _selector = selector; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods // Does the real work to calculate the current SelectedIndexProperty value. internal override object GetValue(BaseValueSourceInternal valueSource) { return _selector.InternalSelectedIndex; } // Gets the type of the value it represents internal override Type GetValueType() { return typeof(int); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Selector mapped to this object. private readonly Selector _selector; #endregion Private Fields } } // 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
- HighlightComponent.cs
- Roles.cs
- ProfileParameter.cs
- DiscoveryInnerClientAdhocCD1.cs
- XmlSchemaComplexContentRestriction.cs
- MissingSatelliteAssemblyException.cs
- UiaCoreProviderApi.cs
- DelegatingTypeDescriptionProvider.cs
- TraceHandlerErrorFormatter.cs
- ViewBox.cs
- ToolZone.cs
- XmlSerializerVersionAttribute.cs
- LocalServiceSecuritySettings.cs
- DllNotFoundException.cs
- NetworkAddressChange.cs
- NominalTypeEliminator.cs
- Filter.cs
- TabPage.cs
- _ServiceNameStore.cs
- RegexGroup.cs
- CompoundFileStreamReference.cs
- XmlMembersMapping.cs
- FrameworkElementFactory.cs
- PropertyConverter.cs
- DirectoryRootQuery.cs
- CollectionType.cs
- ApplicationBuildProvider.cs
- FatalException.cs
- SystemWebExtensionsSectionGroup.cs
- BooleanProjectedSlot.cs
- HyperLinkField.cs
- XmlReturnWriter.cs
- TrackingStringDictionary.cs
- DataException.cs
- _Rfc2616CacheValidators.cs
- OperationBehaviorAttribute.cs
- CalendarTable.cs
- RegionIterator.cs
- SiteMapPath.cs
- ServiceHostingEnvironment.cs
- EmptyControlCollection.cs
- SimpleApplicationHost.cs
- SmtpNegotiateAuthenticationModule.cs
- SafeThemeHandle.cs
- SqlUDTStorage.cs
- KeyboardDevice.cs
- BorderGapMaskConverter.cs
- NotificationContext.cs
- AttributeInfo.cs
- NavigatingCancelEventArgs.cs
- PartialTrustVisibleAssembly.cs
- ObjectStateManagerMetadata.cs
- SynchronizedDispatch.cs
- XmlSchemaGroupRef.cs
- TriggerAction.cs
- XmlAnyAttributeAttribute.cs
- DataColumnCollection.cs
- ArgIterator.cs
- BrowserDefinitionCollection.cs
- PropertyTab.cs
- MaskedTextBoxDesignerActionList.cs
- MethodBuilder.cs
- Simplifier.cs
- xml.cs
- SqlClientWrapperSmiStreamChars.cs
- SafeCryptHandles.cs
- FrugalMap.cs
- FormViewPageEventArgs.cs
- BaseTreeIterator.cs
- MissingSatelliteAssemblyException.cs
- COM2FontConverter.cs
- WebBrowserPermission.cs
- SchemaSetCompiler.cs
- GroupStyle.cs
- StyleXamlParser.cs
- SingleKeyFrameCollection.cs
- CryptoStream.cs
- ProxyAttribute.cs
- AssociationSetMetadata.cs
- CodeArrayIndexerExpression.cs
- MachineKeyValidationConverter.cs
- ProtocolsSection.cs
- AnimationStorage.cs
- OracleColumn.cs
- SafeMILHandleMemoryPressure.cs
- WindowsGrip.cs
- AccessedThroughPropertyAttribute.cs
- TagPrefixCollection.cs
- TableCell.cs
- FlowDocumentFormatter.cs
- SafeLibraryHandle.cs
- MappingException.cs
- EntityDataSourceColumn.cs
- PeerHopCountAttribute.cs
- WebZone.cs
- SkipStoryboardToFill.cs
- MediaContext.cs
- OleStrCAMarshaler.cs
- DropDownButton.cs
- XPathBuilder.cs