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
- WebFaultClientMessageInspector.cs
- PropertySet.cs
- XPathException.cs
- XmlNamespaceMapping.cs
- InputLanguage.cs
- ComponentResourceKeyConverter.cs
- WebPartConnectionsConfigureVerb.cs
- JpegBitmapEncoder.cs
- MultiBindingExpression.cs
- MediaTimeline.cs
- ClientApiGenerator.cs
- RuleInfoComparer.cs
- SafeRightsManagementEnvironmentHandle.cs
- DrawListViewColumnHeaderEventArgs.cs
- Keyboard.cs
- DynamicValidator.cs
- PeerChannelListener.cs
- FixedBufferAttribute.cs
- ChannelFactoryRefCache.cs
- LinkConverter.cs
- Screen.cs
- AddToCollection.cs
- BasicExpressionVisitor.cs
- CharacterMetrics.cs
- IInstanceTable.cs
- DateTimeUtil.cs
- GeneralTransform3D.cs
- KeyInterop.cs
- DataSourceControl.cs
- ArrangedElementCollection.cs
- FormatConvertedBitmap.cs
- MissingSatelliteAssemblyException.cs
- CachedBitmap.cs
- TemplateInstanceAttribute.cs
- DashStyle.cs
- MimeTextImporter.cs
- TargetInvocationException.cs
- XmlDataSourceView.cs
- NativeRecognizer.cs
- XmlSignatureProperties.cs
- BulletedList.cs
- ToolBarButton.cs
- SecurityPolicySection.cs
- MetadataUtilsSmi.cs
- Typeface.cs
- FormsAuthenticationTicket.cs
- GridViewItemAutomationPeer.cs
- ServiceOperationListItem.cs
- StateRuntime.cs
- MethodAccessException.cs
- StandardOleMarshalObject.cs
- _emptywebproxy.cs
- ViewCellSlot.cs
- EmbeddedMailObject.cs
- DiscoveryClientDocuments.cs
- GridViewEditEventArgs.cs
- PolicyValidationException.cs
- AstTree.cs
- SimpleTableProvider.cs
- DecoratedNameAttribute.cs
- C14NUtil.cs
- GestureRecognizer.cs
- XComponentModel.cs
- EtwProvider.cs
- TextBounds.cs
- ToolStripPanelCell.cs
- ConfigurationValues.cs
- TextAdaptor.cs
- TypeConverterAttribute.cs
- FormViewActionList.cs
- BitmapEffectInput.cs
- ValidationErrorEventArgs.cs
- HttpListenerPrefixCollection.cs
- ImmComposition.cs
- InternalPermissions.cs
- DoubleAnimationUsingKeyFrames.cs
- SafeCryptoHandles.cs
- PrtCap_Builder.cs
- FormViewPageEventArgs.cs
- RijndaelManaged.cs
- TextSearch.cs
- CellQuery.cs
- TimeEnumHelper.cs
- TTSVoice.cs
- SmtpAuthenticationManager.cs
- PaintValueEventArgs.cs
- DiscoveryInnerClientManaged11.cs
- OrderedDictionary.cs
- GenericTypeParameterConverter.cs
- Matrix3DValueSerializer.cs
- ConfigXmlElement.cs
- KeyedHashAlgorithm.cs
- ScrollPatternIdentifiers.cs
- NativeMethods.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- VariableExpressionConverter.cs
- ApplicationFileParser.cs
- AmbientProperties.cs
- ColumnReorderedEventArgs.cs
- ExpandSegment.cs