Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. //---------------------------------------------------------------------------- // // 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
- DataGridViewCellCancelEventArgs.cs
- Brush.cs
- ColumnResizeAdorner.cs
- ListCollectionView.cs
- IconBitmapDecoder.cs
- ServiceChannelManager.cs
- DataColumnMapping.cs
- BasicCellRelation.cs
- ErrorWebPart.cs
- CommentAction.cs
- NetworkInterface.cs
- DbBuffer.cs
- WebPartCatalogAddVerb.cs
- FileStream.cs
- PostBackOptions.cs
- BitmapEffectDrawing.cs
- XhtmlBasicLabelAdapter.cs
- MemoryFailPoint.cs
- ColumnResult.cs
- ClientScriptManager.cs
- XmlResolver.cs
- TimelineCollection.cs
- BufferedGraphicsManager.cs
- ProvidersHelper.cs
- ApplicationSecurityInfo.cs
- JsonServiceDocumentSerializer.cs
- TextDataBindingHandler.cs
- WebPartConnectionsCancelEventArgs.cs
- EventRecord.cs
- Int16Storage.cs
- DataServiceRequest.cs
- FontCollection.cs
- Int64.cs
- OdbcEnvironmentHandle.cs
- StringStorage.cs
- CodeAccessPermission.cs
- MessageQueueEnumerator.cs
- ConvertBinder.cs
- ImageMetadata.cs
- OrderToken.cs
- TabItemWrapperAutomationPeer.cs
- WindowsButton.cs
- HyperLinkStyle.cs
- CodeDelegateInvokeExpression.cs
- WebConfigurationManager.cs
- ObjectConverter.cs
- FilterUserControlBase.cs
- CodeComment.cs
- JsonFormatWriterGenerator.cs
- GridViewRowPresenterBase.cs
- PngBitmapDecoder.cs
- Point3DConverter.cs
- TokenBasedSetEnumerator.cs
- ThicknessConverter.cs
- DesignerMetadata.cs
- Gdiplus.cs
- CmsInterop.cs
- ClientSettingsSection.cs
- DataGridTablesFactory.cs
- SqlClientWrapperSmiStream.cs
- HttpValueCollection.cs
- CheckoutException.cs
- ChtmlTextWriter.cs
- ValidateNames.cs
- Misc.cs
- DefaultProxySection.cs
- LongValidator.cs
- HttpCapabilitiesSectionHandler.cs
- autovalidator.cs
- EntityKeyElement.cs
- xmlfixedPageInfo.cs
- WSSecurityPolicy11.cs
- EditingContext.cs
- Color.cs
- OrderedDictionary.cs
- InputBinding.cs
- ObjectStateEntry.cs
- CalculatedColumn.cs
- WebPartMenu.cs
- ToolStripLocationCancelEventArgs.cs
- CopyNamespacesAction.cs
- HttpListenerPrefixCollection.cs
- SystemInformation.cs
- AuthenticationModuleElement.cs
- PathFigure.cs
- TreeViewHitTestInfo.cs
- OutgoingWebRequestContext.cs
- MetadataArtifactLoaderComposite.cs
- ReadOnlyHierarchicalDataSource.cs
- Substitution.cs
- AsymmetricKeyExchangeDeformatter.cs
- PublishLicense.cs
- SmiEventSink.cs
- GradientBrush.cs
- ToolTip.cs
- StringReader.cs
- RangeContentEnumerator.cs
- SqlFormatter.cs
- DataRelationPropertyDescriptor.cs
- UpdateCompiler.cs