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
- OleDbConnectionFactory.cs
- Pipe.cs
- Helpers.cs
- _DomainName.cs
- WindowsGraphicsCacheManager.cs
- FrameworkElement.cs
- BuildManagerHost.cs
- Wildcard.cs
- DBPropSet.cs
- Resources.Designer.cs
- ToolStripItemDesigner.cs
- StreamGeometry.cs
- QueryReaderSettings.cs
- TableColumnCollectionInternal.cs
- SymDocumentType.cs
- Track.cs
- PropertyGridView.cs
- IsolatedStorageFileStream.cs
- KeyConverter.cs
- Rotation3DKeyFrameCollection.cs
- FormsAuthenticationModule.cs
- ClientFormsIdentity.cs
- NegationPusher.cs
- BridgeDataRecord.cs
- SecurityTokenRequirement.cs
- UIElementParaClient.cs
- XmlAggregates.cs
- ProviderBase.cs
- HttpGetServerProtocol.cs
- InternalBufferOverflowException.cs
- ImageList.cs
- PerfCounterSection.cs
- ELinqQueryState.cs
- SecurityDescriptor.cs
- AspNetHostingPermission.cs
- SystemColors.cs
- DesignRelationCollection.cs
- OptionalRstParameters.cs
- Predicate.cs
- NetworkAddressChange.cs
- WpfPayload.cs
- GlyphsSerializer.cs
- ControlType.cs
- DBSchemaTable.cs
- MSAAWinEventWrap.cs
- MouseOverProperty.cs
- HashHelper.cs
- DependencyPropertyChangedEventArgs.cs
- StylusPointProperties.cs
- StringCollection.cs
- CommandID.cs
- CaseInsensitiveHashCodeProvider.cs
- ObjectResult.cs
- GenerateScriptTypeAttribute.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- SerializableAttribute.cs
- HwndSourceParameters.cs
- SqlDependencyUtils.cs
- PrintingPermissionAttribute.cs
- FormViewDeletedEventArgs.cs
- BaseCodePageEncoding.cs
- AppManager.cs
- ProviderConnectionPoint.cs
- HtmlFormAdapter.cs
- PathGeometry.cs
- MonikerSyntaxException.cs
- TextEndOfSegment.cs
- TextPointer.cs
- XmlDocumentSchema.cs
- OperatingSystem.cs
- ObjectNavigationPropertyMapping.cs
- InternalTransaction.cs
- grammarelement.cs
- OptimizedTemplateContentHelper.cs
- KeyBinding.cs
- AtomServiceDocumentSerializer.cs
- ModuleBuilder.cs
- RemoteCryptoRsaServiceProvider.cs
- SmtpNtlmAuthenticationModule.cs
- SamlAuthenticationClaimResource.cs
- HandlerBase.cs
- VerificationAttribute.cs
- InteropBitmapSource.cs
- ServicePoint.cs
- BindingContext.cs
- RoleService.cs
- RectConverter.cs
- PageOutputColor.cs
- DateTimeFormat.cs
- TagPrefixCollection.cs
- NavigationCommands.cs
- BindingContext.cs
- MonthCalendar.cs
- TransactionChannel.cs
- NativeMethods.cs
- Int32Rect.cs
- QilLiteral.cs
- JavaScriptString.cs
- FormattedText.cs
- DtrList.cs