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
- UInt16Storage.cs
- RbTree.cs
- MultiPartWriter.cs
- RegexWriter.cs
- GridToolTip.cs
- MessageLogger.cs
- GetIsBrowserClientRequest.cs
- ImageIndexConverter.cs
- OuterGlowBitmapEffect.cs
- WindowsTreeView.cs
- EdgeModeValidation.cs
- IPPacketInformation.cs
- BooleanAnimationBase.cs
- MulticastOption.cs
- ToolStripCollectionEditor.cs
- CmsUtils.cs
- BooleanToVisibilityConverter.cs
- StylusPointPropertyUnit.cs
- Panel.cs
- MimeAnyImporter.cs
- PerformanceCounters.cs
- ProtocolImporter.cs
- ActiveDocumentEvent.cs
- ListBindingHelper.cs
- DefaultProfileManager.cs
- Int32CAMarshaler.cs
- XomlCompilerResults.cs
- SqlNotificationRequest.cs
- ParameterCollection.cs
- StrokeDescriptor.cs
- DesignerObject.cs
- CollectionViewSource.cs
- BinaryUtilClasses.cs
- DropTarget.cs
- __ConsoleStream.cs
- SqlBulkCopyColumnMappingCollection.cs
- Bidi.cs
- WsdlBuildProvider.cs
- RegionInfo.cs
- DesignObjectWrapper.cs
- ValueExpressions.cs
- AutomationProperties.cs
- HwndSourceParameters.cs
- ScalarConstant.cs
- EncoderReplacementFallback.cs
- DesignTimeHTMLTextWriter.cs
- FormatVersion.cs
- PriorityQueue.cs
- ScriptResourceInfo.cs
- RequestSecurityTokenSerializer.cs
- securestring.cs
- EntityRecordInfo.cs
- ConfigXmlAttribute.cs
- DefaultValueAttribute.cs
- ReferentialConstraint.cs
- RangeValueProviderWrapper.cs
- ApplyImportsAction.cs
- ClonableStack.cs
- CharAnimationUsingKeyFrames.cs
- LinearQuaternionKeyFrame.cs
- NumericUpDownAccelerationCollection.cs
- RuleConditionDialog.cs
- RelationshipEndMember.cs
- FileLogRecordHeader.cs
- CorrelationValidator.cs
- RequestSecurityToken.cs
- QueryResponse.cs
- DateTimePicker.cs
- BookmarkOptionsHelper.cs
- PersistenceProvider.cs
- DESCryptoServiceProvider.cs
- OnOperation.cs
- IResourceProvider.cs
- Image.cs
- ScrollContentPresenter.cs
- SynchronizedDispatch.cs
- HandlerElementCollection.cs
- BufferAllocator.cs
- DSASignatureDeformatter.cs
- ComboBox.cs
- XmlSchemaComplexContentExtension.cs
- DirtyTextRange.cs
- XmlSchemaSequence.cs
- MimeMapping.cs
- RootDesignerSerializerAttribute.cs
- Point4D.cs
- GreenMethods.cs
- ListBase.cs
- Activation.cs
- Message.cs
- DataRelationPropertyDescriptor.cs
- GridViewCellAutomationPeer.cs
- TextTreeTextElementNode.cs
- XmlUtf8RawTextWriter.cs
- GACIdentityPermission.cs
- DateTimeOffsetStorage.cs
- HTMLTextWriter.cs
- PackUriHelper.cs
- DPCustomTypeDescriptor.cs
- ConstructorBuilder.cs