Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DeferredSelectedIndexReference.cs / 1305600 / 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
- XmlSerializableReader.cs
- PermissionListSet.cs
- EventDescriptor.cs
- DataSource.cs
- ToolStripItemCollection.cs
- IntranetCredentialPolicy.cs
- ResourceManagerWrapper.cs
- HijriCalendar.cs
- CellRelation.cs
- InboundActivityHelper.cs
- SemaphoreSecurity.cs
- EditingMode.cs
- AttachInfo.cs
- WebPartConnectionsDisconnectVerb.cs
- NumberSubstitution.cs
- ContentPosition.cs
- NavigationProperty.cs
- BlobPersonalizationState.cs
- TextPointerBase.cs
- IndexingContentUnit.cs
- EntityDataSourceContextCreatedEventArgs.cs
- UInt16.cs
- SignerInfo.cs
- TypeInfo.cs
- PagerSettings.cs
- StylusPointProperty.cs
- Positioning.cs
- Emitter.cs
- PropertyValueChangedEvent.cs
- DataServiceException.cs
- BoundField.cs
- DataColumnMappingCollection.cs
- FixedTextView.cs
- XmlCharacterData.cs
- CollectionExtensions.cs
- BamlCollectionHolder.cs
- ListViewItem.cs
- GraphicsPath.cs
- Size3DConverter.cs
- GridItemCollection.cs
- HwndSourceParameters.cs
- BlockCollection.cs
- DataGridViewComboBoxCell.cs
- CodeObjectCreateExpression.cs
- MembershipSection.cs
- MenuAutoFormat.cs
- SevenBitStream.cs
- invalidudtexception.cs
- PartialTrustVisibleAssembliesSection.cs
- IndicShape.cs
- MobilePage.cs
- OleDbSchemaGuid.cs
- PopOutPanel.cs
- SettingsAttributes.cs
- HMACRIPEMD160.cs
- ChangesetResponse.cs
- EditorZone.cs
- DataControlFieldCollection.cs
- DirectoryObjectSecurity.cs
- SqlCommandBuilder.cs
- ResourceReferenceExpression.cs
- InspectionWorker.cs
- BatchParser.cs
- CompositeDataBoundControl.cs
- DbConnectionPoolIdentity.cs
- MarkupProperty.cs
- EditBehavior.cs
- WSSecurityTokenSerializer.cs
- BufferedStream2.cs
- WebPageTraceListener.cs
- XmlSchemaObjectCollection.cs
- NamespaceInfo.cs
- SiteMapDataSourceView.cs
- HtmlInputReset.cs
- UseLicense.cs
- SerialPort.cs
- MasterPageBuildProvider.cs
- remotingproxy.cs
- IEnumerable.cs
- SessionStateSection.cs
- PersianCalendar.cs
- TileModeValidation.cs
- ContextInformation.cs
- TdsParameterSetter.cs
- TextServicesCompartmentContext.cs
- HttpChannelBindingToken.cs
- util.cs
- TokenBasedSetEnumerator.cs
- TriState.cs
- ColumnClickEvent.cs
- Subset.cs
- ConversionValidationRule.cs
- TypeSemantics.cs
- OverrideMode.cs
- PreservationFileReader.cs
- UserNameSecurityToken.cs
- ServiceHttpModule.cs
- TextEncodedRawTextWriter.cs
- PolyBezierSegmentFigureLogic.cs
- StylusEditingBehavior.cs