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
- ResolveNameEventArgs.cs
- KeyboardDevice.cs
- LinearGradientBrush.cs
- OrderByLifter.cs
- ObjectTag.cs
- AsyncContentLoadedEventArgs.cs
- ProcessHostFactoryHelper.cs
- SqlRowUpdatingEvent.cs
- ZipArchive.cs
- ImageInfo.cs
- COM2IDispatchConverter.cs
- SoapAttributes.cs
- ObsoleteAttribute.cs
- TextProperties.cs
- NotifyParentPropertyAttribute.cs
- ResourcePool.cs
- XXXInfos.cs
- cryptoapiTransform.cs
- ZoomPercentageConverter.cs
- DoubleAnimation.cs
- XmlSchema.cs
- DesignerActionItemCollection.cs
- CachedTypeface.cs
- XmlElementAttributes.cs
- ConnectionConsumerAttribute.cs
- ObjectTypeMapping.cs
- RuntimeEnvironment.cs
- GridViewUpdatedEventArgs.cs
- MailMessage.cs
- PathParser.cs
- WorkflowServiceAttributes.cs
- UIElementAutomationPeer.cs
- RoleGroupCollectionEditor.cs
- QuaternionRotation3D.cs
- HyperLinkField.cs
- SoapReflector.cs
- DataBoundControlAdapter.cs
- AsyncPostBackErrorEventArgs.cs
- UriTemplateEquivalenceComparer.cs
- ProviderConnectionPointCollection.cs
- DataGridViewRowConverter.cs
- DesignBindingConverter.cs
- ThreadStartException.cs
- ObjectListComponentEditor.cs
- ListItemConverter.cs
- InvalidPrinterException.cs
- WebConfigurationManager.cs
- PersonalizationStateQuery.cs
- Thumb.cs
- CodeAttachEventStatement.cs
- DataGridViewRowPostPaintEventArgs.cs
- SignedXml.cs
- SrgsOneOf.cs
- ComponentDispatcher.cs
- GeneralTransform2DTo3D.cs
- CompoundFileIOPermission.cs
- X509SecurityToken.cs
- HiddenField.cs
- SchemaAttDef.cs
- MissingManifestResourceException.cs
- Region.cs
- ChildTable.cs
- ThousandthOfEmRealPoints.cs
- DisableDpiAwarenessAttribute.cs
- FixedPageAutomationPeer.cs
- Int64Storage.cs
- TextTreeExtractElementUndoUnit.cs
- EmptyReadOnlyDictionaryInternal.cs
- ADMembershipUser.cs
- DataStorage.cs
- CssTextWriter.cs
- TableCellCollection.cs
- Marshal.cs
- XamlToRtfParser.cs
- Currency.cs
- Size.cs
- Int16.cs
- OverflowException.cs
- CompilerGlobalScopeAttribute.cs
- ConnectionPoolManager.cs
- TagMapCollection.cs
- InputReport.cs
- KeyInterop.cs
- NetDispatcherFaultException.cs
- AssemblyAttributesGoHere.cs
- WindowsStatusBar.cs
- InvalidOleVariantTypeException.cs
- ClientRoleProvider.cs
- CharConverter.cs
- NoClickablePointException.cs
- RegexTree.cs
- DoubleAnimation.cs
- ToolboxBitmapAttribute.cs
- UIntPtr.cs
- IPPacketInformation.cs
- XmlChildNodes.cs
- FontNamesConverter.cs
- MulticastNotSupportedException.cs
- AppDomainFactory.cs
- BaseAddressPrefixFilterElement.cs