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
- COM2IDispatchConverter.cs
- WebResponse.cs
- ProjectionQueryOptionExpression.cs
- RightsManagementEncryptionTransform.cs
- IntMinMaxAggregationOperator.cs
- SemaphoreFullException.cs
- TextUtf8RawTextWriter.cs
- ToolboxBitmapAttribute.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- Attachment.cs
- DbConnectionPoolIdentity.cs
- SmtpSection.cs
- IndentedWriter.cs
- CommonProperties.cs
- GroupItem.cs
- RawAppCommandInputReport.cs
- TraceInternal.cs
- ExitEventArgs.cs
- ContentType.cs
- WCFServiceClientProxyGenerator.cs
- EventProviderWriter.cs
- GridItemCollection.cs
- ChameleonKey.cs
- ISAPIApplicationHost.cs
- RealizationContext.cs
- Group.cs
- CompilerTypeWithParams.cs
- AutomationPatternInfo.cs
- Permission.cs
- RegexGroup.cs
- OdbcErrorCollection.cs
- WebPartTransformer.cs
- ListenerElementsCollection.cs
- TemplateControl.cs
- XamlReader.cs
- NumberFormatter.cs
- RC2CryptoServiceProvider.cs
- Style.cs
- SamlAuthorityBinding.cs
- GlyphsSerializer.cs
- PositiveTimeSpanValidatorAttribute.cs
- TabItem.cs
- backend.cs
- BackStopAuthenticationModule.cs
- DataServiceRequestArgs.cs
- ValueProviderWrapper.cs
- WebPartManager.cs
- BufferModesCollection.cs
- SqlVisitor.cs
- ConnectionStringsSection.cs
- CodeValidator.cs
- LockedAssemblyCache.cs
- FaultCallbackWrapper.cs
- EpmContentSerializerBase.cs
- CmsUtils.cs
- AppearanceEditorPart.cs
- HttpCapabilitiesSectionHandler.cs
- KnownBoxes.cs
- ListManagerBindingsCollection.cs
- InvalidPrinterException.cs
- HtmlInputImage.cs
- ContainerFilterService.cs
- RenamedEventArgs.cs
- MemberMaps.cs
- ProfileParameter.cs
- HtmlHead.cs
- FixUp.cs
- HandlerFactoryWrapper.cs
- AxHost.cs
- WMIInterop.cs
- SecureStringHasher.cs
- InstalledFontCollection.cs
- Int16Converter.cs
- ISFTagAndGuidCache.cs
- DataGridColumnDropSeparator.cs
- RequestBringIntoViewEventArgs.cs
- TextDecorationUnitValidation.cs
- AssociationTypeEmitter.cs
- DefaultProxySection.cs
- NotFiniteNumberException.cs
- GeometryHitTestParameters.cs
- AspCompat.cs
- DocumentSchemaValidator.cs
- RegistrySecurity.cs
- MessageBodyMemberAttribute.cs
- PassportAuthenticationEventArgs.cs
- KeyConstraint.cs
- DrawingAttributesDefaultValueFactory.cs
- GcHandle.cs
- Registry.cs
- GridViewDeleteEventArgs.cs
- DataServiceBuildProvider.cs
- OperationDescriptionCollection.cs
- EntitySet.cs
- UnknownBitmapEncoder.cs
- TextEditorSelection.cs
- TemplateXamlTreeBuilder.cs
- MenuItemStyleCollection.cs
- ConfigurationStrings.cs
- Int32Collection.cs