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
- SequentialUshortCollection.cs
- CharUnicodeInfo.cs
- RowTypePropertyElement.cs
- BitVec.cs
- AuthenticatedStream.cs
- ListViewAutomationPeer.cs
- TextTrailingCharacterEllipsis.cs
- DesignerActionUI.cs
- UnsafeNativeMethods.cs
- AddInEnvironment.cs
- _BasicClient.cs
- Propagator.JoinPropagator.cs
- TracedNativeMethods.cs
- NullableConverter.cs
- SslStream.cs
- ClientData.cs
- IntellisenseTextBox.designer.cs
- SafeWaitHandle.cs
- GatewayDefinition.cs
- CachedPathData.cs
- ExtensionWindowHeader.cs
- Cursor.cs
- StylusCollection.cs
- RegistryPermission.cs
- ToolStripOverflow.cs
- SqlUdtInfo.cs
- DispatcherProcessingDisabled.cs
- BindToObject.cs
- HtmlEmptyTagControlBuilder.cs
- BinaryFormatter.cs
- DataRow.cs
- ExclusiveHandleList.cs
- HttpStreamFormatter.cs
- DbgCompiler.cs
- Maps.cs
- GeneralTransformGroup.cs
- ClientUtils.cs
- DetailsViewInsertedEventArgs.cs
- BitmapEffectGeneralTransform.cs
- TableLayoutPanelCellPosition.cs
- SecurityPermission.cs
- WorkflowInlining.cs
- MimeXmlImporter.cs
- counter.cs
- WebPartTracker.cs
- NotSupportedException.cs
- RepeatButton.cs
- Style.cs
- SourceFileBuildProvider.cs
- IPAddress.cs
- UnsafeNativeMethods.cs
- TextTreeUndo.cs
- XmlHelper.cs
- TemplateBaseAction.cs
- OutOfProcStateClientManager.cs
- SByteConverter.cs
- DoubleCollection.cs
- WindowsServiceCredential.cs
- AssociationEndMember.cs
- Propagator.Evaluator.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataRowComparer.cs
- DBConnection.cs
- DataControlField.cs
- OAVariantLib.cs
- DrawingVisualDrawingContext.cs
- EntityContainerRelationshipSet.cs
- SchemaNamespaceManager.cs
- RootProfilePropertySettingsCollection.cs
- ValidationErrorEventArgs.cs
- MetadataWorkspace.cs
- ConvertEvent.cs
- ListDictionary.cs
- FederatedMessageSecurityOverHttpElement.cs
- Separator.cs
- ExpressionBuilder.cs
- XmlChildEnumerator.cs
- AnimationClockResource.cs
- DataRowView.cs
- Page.cs
- HwndKeyboardInputProvider.cs
- TlsSspiNegotiation.cs
- PointConverter.cs
- TableItemStyle.cs
- DataSysAttribute.cs
- NamedPipeActivation.cs
- DataExpression.cs
- BigIntegerStorage.cs
- _OverlappedAsyncResult.cs
- XmlCountingReader.cs
- HttpException.cs
- CallContext.cs
- Transform.cs
- StylusPlugInCollection.cs
- NodeFunctions.cs
- AffineTransform3D.cs
- AdditionalEntityFunctions.cs
- AssemblyAttributesGoHere.cs
- VerticalAlignConverter.cs
- CustomTypeDescriptor.cs