Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- UrlAuthorizationModule.cs
- SplineQuaternionKeyFrame.cs
- UpnEndpointIdentityExtension.cs
- DataServiceException.cs
- VersionedStream.cs
- RepeaterCommandEventArgs.cs
- SupportsPreviewControlAttribute.cs
- BackgroundWorker.cs
- ButtonPopupAdapter.cs
- AdCreatedEventArgs.cs
- DesignerActionTextItem.cs
- DbConnectionPoolGroupProviderInfo.cs
- SQLBoolean.cs
- SerializerProvider.cs
- AxWrapperGen.cs
- XPathNodeList.cs
- DesignerTransaction.cs
- MsmqChannelFactory.cs
- WebPartChrome.cs
- FlatButtonAppearance.cs
- followingquery.cs
- SqlRemoveConstantOrderBy.cs
- WebPartRestoreVerb.cs
- TransactionProxy.cs
- FrameDimension.cs
- DBCommand.cs
- compensatingcollection.cs
- TransportElement.cs
- Directory.cs
- Cursor.cs
- Menu.cs
- DesignerAutoFormatStyle.cs
- LinqDataSourceHelper.cs
- BaseCollection.cs
- AuthorizationSection.cs
- ServiceAppDomainAssociationProvider.cs
- SortFieldComparer.cs
- MenuItemAutomationPeer.cs
- GenericTransactionFlowAttribute.cs
- DataGridCellEditEndingEventArgs.cs
- KeyedQueue.cs
- ScriptModule.cs
- BuildProviderAppliesToAttribute.cs
- ScriptIgnoreAttribute.cs
- TextPattern.cs
- DataGridViewCell.cs
- FilterQuery.cs
- StylusTip.cs
- InstanceDataCollectionCollection.cs
- _Win32.cs
- ObjectDisposedException.cs
- SafeSecurityHandles.cs
- XmlTypeAttribute.cs
- AsyncOperation.cs
- PinnedBufferMemoryStream.cs
- CompiledXpathExpr.cs
- AuthenticateEventArgs.cs
- Baml6Assembly.cs
- AllMembershipCondition.cs
- PersonalizationProviderCollection.cs
- TextEditorTyping.cs
- RSAOAEPKeyExchangeDeformatter.cs
- baseshape.cs
- CanExecuteRoutedEventArgs.cs
- BaseUriHelper.cs
- DbCommandDefinition.cs
- SqlDataSource.cs
- ApplicationInterop.cs
- DataContractSet.cs
- DataTableReader.cs
- GenericsInstances.cs
- PageBreakRecord.cs
- DataGridViewColumn.cs
- XPathSingletonIterator.cs
- KeyInterop.cs
- Identifier.cs
- DataDocumentXPathNavigator.cs
- ValueOfAction.cs
- DbConnectionFactory.cs
- TextFormatterImp.cs
- SymbolEqualComparer.cs
- MenuBase.cs
- InstanceData.cs
- GridViewDeletedEventArgs.cs
- TypeInfo.cs
- EntityDesignerUtils.cs
- PropertyManager.cs
- TableRowCollection.cs
- CachedBitmap.cs
- SecurityIdentifierElementCollection.cs
- DocumentOrderQuery.cs
- QuaternionKeyFrameCollection.cs
- XmlWrappingWriter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TableDetailsCollection.cs
- DataSourceCache.cs
- BitmapImage.cs
- Sequence.cs
- TreeViewEvent.cs
- PeerNearMe.cs