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
- XmlWriterDelegator.cs
- AccessControlEntry.cs
- ToolboxItem.cs
- VectorCollectionConverter.cs
- FlagsAttribute.cs
- DoubleIndependentAnimationStorage.cs
- AssemblyResourceLoader.cs
- CounterSampleCalculator.cs
- LogSwitch.cs
- LocalizableAttribute.cs
- XmlAtomicValue.cs
- GetPageCompletedEventArgs.cs
- TypeConstant.cs
- RegexCharClass.cs
- EmptyControlCollection.cs
- COM2ExtendedTypeConverter.cs
- PageHandlerFactory.cs
- _HTTPDateParse.cs
- HttpCapabilitiesSectionHandler.cs
- DocumentViewerBaseAutomationPeer.cs
- Stopwatch.cs
- IdentityManager.cs
- RightsManagementManager.cs
- SqlMetaData.cs
- DelegatedStream.cs
- QueryableFilterRepeater.cs
- XmlSchemaSimpleTypeUnion.cs
- Visual3DCollection.cs
- FileInfo.cs
- XmlSchemaObjectTable.cs
- AssemblyAssociatedContentFileAttribute.cs
- ComplexTypeEmitter.cs
- UrlPath.cs
- QuadraticBezierSegment.cs
- PointUtil.cs
- GetReadStreamResult.cs
- XmlSiteMapProvider.cs
- ToolBarButtonClickEvent.cs
- ProfileGroupSettings.cs
- FloaterParagraph.cs
- SQLUtility.cs
- Metafile.cs
- DbParameterHelper.cs
- WindowsTokenRoleProvider.cs
- FrameworkReadOnlyPropertyMetadata.cs
- HttpApplicationStateWrapper.cs
- DictionaryContent.cs
- WinFormsSpinner.cs
- KeyboardEventArgs.cs
- WebConfigurationHost.cs
- PngBitmapEncoder.cs
- prompt.cs
- DateTimeUtil.cs
- FixUp.cs
- ManagementClass.cs
- SeekStoryboard.cs
- _StreamFramer.cs
- AuthenticationConfig.cs
- PaintValueEventArgs.cs
- ScrollViewer.cs
- PointIndependentAnimationStorage.cs
- SemanticKeyElement.cs
- Viewport2DVisual3D.cs
- NetMsmqBinding.cs
- PointValueSerializer.cs
- ContractMapping.cs
- FontStyle.cs
- WebPartVerbsEventArgs.cs
- ExtensionWindowResizeGrip.cs
- SchemaMerger.cs
- ConstructorBuilder.cs
- CommonBehaviorsSection.cs
- SqlError.cs
- CodeCatchClauseCollection.cs
- StackSpiller.Temps.cs
- ToolboxSnapDragDropEventArgs.cs
- TreeViewImageIndexConverter.cs
- ScopelessEnumAttribute.cs
- SqlBulkCopy.cs
- DataServiceExpressionVisitor.cs
- EventNotify.cs
- BasePropertyDescriptor.cs
- DBDataPermissionAttribute.cs
- LostFocusEventManager.cs
- ObjectDataProvider.cs
- CryptoApi.cs
- EpmTargetTree.cs
- EventLogPermissionEntry.cs
- WsatServiceCertificate.cs
- ArrayElementGridEntry.cs
- HtmlDocument.cs
- Pointer.cs
- DataList.cs
- SQLDecimalStorage.cs
- HtmlInputText.cs
- HyperLinkDesigner.cs
- EmbeddedMailObjectsCollection.cs
- ApplicationInterop.cs
- TracePayload.cs
- DoubleCollectionConverter.cs