Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DesignTimeSiteMapProvider.cs
- AspNetHostingPermission.cs
- WebSysDescriptionAttribute.cs
- ItemList.cs
- webproxy.cs
- LinqTreeNodeEvaluator.cs
- TypeDescriptionProvider.cs
- ExternalDataExchangeService.cs
- UInt64Storage.cs
- BasicViewGenerator.cs
- RegexTypeEditor.cs
- ResourceCategoryAttribute.cs
- AsymmetricAlgorithm.cs
- SqlFunctions.cs
- DataSourceHelper.cs
- CheckedListBox.cs
- MessageQueueConverter.cs
- XmlAttributeHolder.cs
- DebugControllerThread.cs
- WindowsStatic.cs
- SessionStateSection.cs
- JsonDeserializer.cs
- DataControlFieldCollection.cs
- ConfigXmlComment.cs
- METAHEADER.cs
- Compiler.cs
- DbParameterHelper.cs
- ScaleTransform.cs
- MsmqTransportElement.cs
- PathFigureCollection.cs
- DataGridViewRowStateChangedEventArgs.cs
- DesigntimeLicenseContext.cs
- LoginNameDesigner.cs
- RegexCode.cs
- QilFactory.cs
- ResourceExpressionEditorSheet.cs
- CrossContextChannel.cs
- ClientSettings.cs
- X500Name.cs
- DataGridViewBindingCompleteEventArgs.cs
- CommandDevice.cs
- NullableFloatMinMaxAggregationOperator.cs
- ParameterCollection.cs
- SynchronizationLockException.cs
- PrintEvent.cs
- EdgeProfileValidation.cs
- EventWaitHandle.cs
- SmiEventStream.cs
- RootDesignerSerializerAttribute.cs
- ImageMetadata.cs
- XmlArrayItemAttributes.cs
- LinkedList.cs
- WhitespaceRuleReader.cs
- SynchronizationLockException.cs
- DrawingCollection.cs
- SpStreamWrapper.cs
- Trustee.cs
- DistinctQueryOperator.cs
- WindowsRegion.cs
- SchemeSettingElementCollection.cs
- ActivityCodeDomReferenceService.cs
- MessageQueueException.cs
- DerivedKeySecurityToken.cs
- XsltContext.cs
- NewExpression.cs
- LexicalChunk.cs
- ToolStripDropDownMenu.cs
- ClientTargetCollection.cs
- _CacheStreams.cs
- Permission.cs
- WebReferencesBuildProvider.cs
- UIElementParaClient.cs
- httpapplicationstate.cs
- HttpApplication.cs
- StrongNameIdentityPermission.cs
- IpcChannelHelper.cs
- PriorityQueue.cs
- MailWriter.cs
- InfocardClientCredentials.cs
- TypeCacheManager.cs
- AssemblyNameProxy.cs
- OnOperation.cs
- SecurityUniqueId.cs
- LassoHelper.cs
- FontUnitConverter.cs
- JsonByteArrayDataContract.cs
- RoutingEndpointTrait.cs
- PeerTransportListenAddressConverter.cs
- FontNamesConverter.cs
- HiddenFieldPageStatePersister.cs
- SoapHttpTransportImporter.cs
- BindingContext.cs
- WebPartConnectionsDisconnectVerb.cs
- ChildrenQuery.cs
- TabControlAutomationPeer.cs
- WebColorConverter.cs
- TrackingWorkflowEventArgs.cs
- XamlHostingConfiguration.cs
- UIElement.cs
- CookielessData.cs