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
- Matrix3D.cs
- RayMeshGeometry3DHitTestResult.cs
- LocalizationComments.cs
- SqlCaseSimplifier.cs
- DBConnection.cs
- MachineKeySection.cs
- FixedSOMElement.cs
- OdbcConnection.cs
- RoutedEventConverter.cs
- _StreamFramer.cs
- PenThread.cs
- SafeCloseHandleCritical.cs
- JpegBitmapDecoder.cs
- Track.cs
- ControlPropertyNameConverter.cs
- DependencyPropertyKey.cs
- FontNamesConverter.cs
- StandardTransformFactory.cs
- DependentList.cs
- InvalidComObjectException.cs
- ExpressionPrefixAttribute.cs
- EntityCommandDefinition.cs
- AccessViolationException.cs
- MailWriter.cs
- EraserBehavior.cs
- EndpointInfo.cs
- System.Data.OracleClient_BID.cs
- FormViewInsertEventArgs.cs
- MobileComponentEditorPage.cs
- NewExpression.cs
- BeginCreateSecurityTokenRequest.cs
- SafeRsaProviderHandle.cs
- MembershipValidatePasswordEventArgs.cs
- XmlILConstructAnalyzer.cs
- assertwrapper.cs
- compensatingcollection.cs
- FormatterConverter.cs
- TouchPoint.cs
- Rect3DValueSerializer.cs
- ParameterModifier.cs
- TransformedBitmap.cs
- DesignBinding.cs
- DynamicVirtualDiscoSearcher.cs
- LineServices.cs
- ACE.cs
- _SpnDictionary.cs
- AsyncResult.cs
- FileSystemWatcher.cs
- ObjectConverter.cs
- ToolStripOverflow.cs
- CrossContextChannel.cs
- EditorAttribute.cs
- SocketElement.cs
- GuidelineCollection.cs
- MimeFormatter.cs
- SiteMap.cs
- DataGridViewColumnCollection.cs
- ExeConfigurationFileMap.cs
- Int64.cs
- ComponentResourceManager.cs
- HttpBufferlessInputStream.cs
- DataControlFieldCell.cs
- Formatter.cs
- DynamicMethod.cs
- ObjectListCommandCollection.cs
- EncryptedPackage.cs
- TdsParserSessionPool.cs
- Inflater.cs
- DataGridViewCellStyleConverter.cs
- CookielessHelper.cs
- EntityDataSourceDataSelectionPanel.cs
- CommandManager.cs
- RightsManagementSuppressedStream.cs
- XPathSingletonIterator.cs
- ManagementPath.cs
- OdbcCommand.cs
- SmtpAuthenticationManager.cs
- DataGridItem.cs
- SerialReceived.cs
- RepeaterItemEventArgs.cs
- SmtpFailedRecipientException.cs
- FontUnitConverter.cs
- ApplicationServiceHelper.cs
- Trace.cs
- ResourceIDHelper.cs
- OletxVolatileEnlistment.cs
- MsdtcWrapper.cs
- LayoutUtils.cs
- BindingExpression.cs
- Instrumentation.cs
- ProcessHostServerConfig.cs
- XmlSchemaImporter.cs
- DebugHandleTracker.cs
- PlainXmlDeserializer.cs
- ImageCodecInfoPrivate.cs
- CacheRequest.cs
- Pkcs7Signer.cs
- TreeNodeSelectionProcessor.cs
- CoreSwitches.cs
- EventProperty.cs