Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DecoderExceptionFallback.cs
- DashStyles.cs
- FieldToken.cs
- Identity.cs
- DeviceSpecificDesigner.cs
- XmlMembersMapping.cs
- PolyBezierSegment.cs
- Font.cs
- PrtTicket_Public_Simple.cs
- TransformCollection.cs
- SchemaNames.cs
- GridLengthConverter.cs
- XPathAxisIterator.cs
- PropertyEntry.cs
- ProtocolViolationException.cs
- RemoteTokenFactory.cs
- SerializationUtility.cs
- ByteStreamGeometryContext.cs
- IItemContainerGenerator.cs
- MailBnfHelper.cs
- HyperLinkColumn.cs
- DataMemberListEditor.cs
- ToolStripSeparator.cs
- RoleServiceManager.cs
- EntityWithKeyStrategy.cs
- DbProviderFactory.cs
- SqlCommandSet.cs
- ConnectionStringSettings.cs
- ViewStateException.cs
- Clock.cs
- SqlClientWrapperSmiStreamChars.cs
- DataGridViewCellParsingEventArgs.cs
- IndexObject.cs
- Message.cs
- PagedDataSource.cs
- FixedSOMPage.cs
- ImageCodecInfo.cs
- Stopwatch.cs
- Parser.cs
- BitmapEffectInputData.cs
- Application.cs
- WebPartTracker.cs
- ProcessModelInfo.cs
- DataPointer.cs
- InstanceKeyView.cs
- ActivityIdHeader.cs
- LiteralDesigner.cs
- RequestQueue.cs
- XmlCustomFormatter.cs
- RemoteHelper.cs
- TransactedBatchingBehavior.cs
- Classification.cs
- XmlSchemaChoice.cs
- SrgsDocument.cs
- typedescriptorpermission.cs
- LinqToSqlWrapper.cs
- SrgsElementFactory.cs
- AddInProcess.cs
- WebPartZoneBase.cs
- TemplatePropertyEntry.cs
- ClientCredentials.cs
- PathBox.cs
- ImportedPolicyConversionContext.cs
- BindingManagerDataErrorEventArgs.cs
- VersionedStreamOwner.cs
- XmlChoiceIdentifierAttribute.cs
- GridViewHeaderRowPresenter.cs
- UniformGrid.cs
- ZeroOpNode.cs
- PagerSettings.cs
- CallContext.cs
- XmlDocumentSchema.cs
- Shape.cs
- XmlSchemaDatatype.cs
- Window.cs
- SelectedDatesCollection.cs
- KernelTypeValidation.cs
- BackgroundWorker.cs
- FixedSOMContainer.cs
- FilterElement.cs
- ProjectionCamera.cs
- MarkupExtensionReturnTypeAttribute.cs
- GenericIdentity.cs
- PageWrapper.cs
- TypeSemantics.cs
- TextDocumentView.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- ReturnEventArgs.cs
- Hyperlink.cs
- SByte.cs
- _ConnectionGroup.cs
- CompositeDataBoundControl.cs
- EventLogger.cs
- ScriptIgnoreAttribute.cs
- WebControlAdapter.cs
- SqlParameterizer.cs
- ValidationEventArgs.cs
- SQLBytes.cs
- XmlSchemaNotation.cs
- OdbcFactory.cs