Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- LicenseProviderAttribute.cs
- HttpListenerRequestUriBuilder.cs
- XPathScanner.cs
- SessionState.cs
- CatalogZoneBase.cs
- Collection.cs
- XmlUTF8TextWriter.cs
- AxisAngleRotation3D.cs
- Vector3DIndependentAnimationStorage.cs
- ListInitExpression.cs
- ByteStreamGeometryContext.cs
- HyperLinkColumn.cs
- Journaling.cs
- ListItemCollection.cs
- WebPartDisplayModeCollection.cs
- TableRowGroup.cs
- Point3DAnimationUsingKeyFrames.cs
- TargetFrameworkAttribute.cs
- ContextMarshalException.cs
- ObjectReaderCompiler.cs
- OutOfMemoryException.cs
- InputReferenceExpression.cs
- PersonalizationStateInfo.cs
- LinearGradientBrush.cs
- ISAPIRuntime.cs
- MessageSecurityOverMsmq.cs
- COM2PropertyDescriptor.cs
- D3DImage.cs
- ContentPlaceHolderDesigner.cs
- DatagridviewDisplayedBandsData.cs
- Trace.cs
- TraceListeners.cs
- SimpleLine.cs
- ErrorFormatterPage.cs
- ApplicationBuildProvider.cs
- FormatVersion.cs
- Process.cs
- TextEndOfParagraph.cs
- PrintController.cs
- CollectionViewSource.cs
- SmtpFailedRecipientException.cs
- webbrowsersite.cs
- Odbc32.cs
- FrugalMap.cs
- FocusManager.cs
- ListControlConvertEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- GeometryConverter.cs
- RadialGradientBrush.cs
- DispatcherOperation.cs
- GlyphCache.cs
- FactoryRecord.cs
- IndexedEnumerable.cs
- WebPartTransformerCollection.cs
- LineVisual.cs
- InlineUIContainer.cs
- _MultipleConnectAsync.cs
- MonthCalendar.cs
- MiniLockedBorderGlyph.cs
- DataGridViewButtonCell.cs
- RandomNumberGenerator.cs
- UTF32Encoding.cs
- DocComment.cs
- ResolveNameEventArgs.cs
- ConfigurationValidatorBase.cs
- BrowserDefinition.cs
- Knowncolors.cs
- DirectoryObjectSecurity.cs
- Utility.cs
- UpdateExpressionVisitor.cs
- GorillaCodec.cs
- DataBoundControlHelper.cs
- QueryContinueDragEventArgs.cs
- CaretElement.cs
- UpdateCommand.cs
- BitmapData.cs
- BamlRecordHelper.cs
- PaintValueEventArgs.cs
- ProviderException.cs
- Msmq.cs
- HttpCachePolicyWrapper.cs
- CopyNodeSetAction.cs
- TransactionInformation.cs
- SqlAliasesReferenced.cs
- Stream.cs
- _NegotiateClient.cs
- ResolveDuplexCD1AsyncResult.cs
- ProcessModule.cs
- BindingExpressionUncommonField.cs
- CancellationToken.cs
- GestureRecognitionResult.cs
- BitmapEffectDrawingContent.cs
- PolicyLevel.cs
- StrokeCollection.cs
- WebPartAuthorizationEventArgs.cs
- XmlAutoDetectWriter.cs
- UIElement3D.cs
- MetadataArtifactLoaderResource.cs
- MouseBinding.cs
- LinqToSqlWrapper.cs