Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / DeferredSelectedIndexReference.cs / 1 / 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
- RequiredAttributeAttribute.cs
- SmtpMail.cs
- DbMetaDataFactory.cs
- Variant.cs
- EntitySqlQueryBuilder.cs
- coordinatorfactory.cs
- NegationPusher.cs
- SqlDataSourceCommandEventArgs.cs
- StorageScalarPropertyMapping.cs
- AbandonedMutexException.cs
- __Filters.cs
- NetTcpSecurity.cs
- RangeValuePattern.cs
- JsonXmlDataContract.cs
- WindowsBrush.cs
- WebPartConnectionsCancelVerb.cs
- CultureInfoConverter.cs
- HostingEnvironment.cs
- SafeMemoryMappedViewHandle.cs
- remotingproxy.cs
- PageParser.cs
- PreDigestedSignedInfo.cs
- GraphicsPath.cs
- MenuItem.cs
- Brush.cs
- DesignerContextDescriptor.cs
- ZipIOCentralDirectoryFileHeader.cs
- BamlCollectionHolder.cs
- TransformDescriptor.cs
- DataTransferEventArgs.cs
- MemberInfoSerializationHolder.cs
- OleDbErrorCollection.cs
- AdapterUtil.cs
- CalendarTable.cs
- SelectionRange.cs
- BindingObserver.cs
- OracleCommand.cs
- AppearanceEditorPart.cs
- DCSafeHandle.cs
- PreservationFileReader.cs
- COM2ExtendedUITypeEditor.cs
- BufferAllocator.cs
- ClientFactory.cs
- ConfigsHelper.cs
- EventManager.cs
- EnumType.cs
- TableParagraph.cs
- BaseTemplateBuildProvider.cs
- RoleManagerModule.cs
- OleDbConnection.cs
- BindValidator.cs
- RSAProtectedConfigurationProvider.cs
- XmlSchemaSimpleContentRestriction.cs
- WindowsScrollBar.cs
- XmlSerializerFormatAttribute.cs
- Helpers.cs
- NativeObjectSecurity.cs
- DataSourceBooleanViewSchemaConverter.cs
- BlurBitmapEffect.cs
- FixedElement.cs
- DrawingBrush.cs
- CreateInstanceBinder.cs
- OneToOneMappingSerializer.cs
- DecimalKeyFrameCollection.cs
- CatalogPartCollection.cs
- ConnectionStringSettings.cs
- XmlQueryTypeFactory.cs
- XmlDataSource.cs
- QilSortKey.cs
- Missing.cs
- AttributeParameterInfo.cs
- StylusPointPropertyInfoDefaults.cs
- UpDownBase.cs
- HtmlControlPersistable.cs
- CategoryGridEntry.cs
- ProviderIncompatibleException.cs
- LogoValidationException.cs
- GridViewDeleteEventArgs.cs
- EntityContainer.cs
- ListItem.cs
- TrackBarDesigner.cs
- UserInitiatedNavigationPermission.cs
- NamespaceDecl.cs
- XmlSchemaGroup.cs
- ScriptResourceAttribute.cs
- HwndKeyboardInputProvider.cs
- ContainerCodeDomSerializer.cs
- TypeInitializationException.cs
- RectIndependentAnimationStorage.cs
- Misc.cs
- SubclassTypeValidator.cs
- VectorKeyFrameCollection.cs
- TrimSurroundingWhitespaceAttribute.cs
- KeyboardNavigation.cs
- AffineTransform3D.cs
- ApplicationServiceManager.cs
- ClientType.cs
- ManagementPath.cs
- infer.cs
- cookieexception.cs