Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SignatureDescription.cs
- MSAANativeProvider.cs
- UIElement3D.cs
- WebReferencesBuildProvider.cs
- DiscoveryReferences.cs
- SamlAuthorityBinding.cs
- XmlName.cs
- SBCSCodePageEncoding.cs
- BaseResourcesBuildProvider.cs
- MgmtConfigurationRecord.cs
- DesignerCategoryAttribute.cs
- InvalidateEvent.cs
- WeakRefEnumerator.cs
- UIntPtr.cs
- WebConfigurationHostFileChange.cs
- SuspendDesigner.cs
- SqlDataReader.cs
- BindingNavigatorDesigner.cs
- RowParagraph.cs
- SmtpFailedRecipientsException.cs
- TableRow.cs
- RedistVersionInfo.cs
- TemplateComponentConnector.cs
- SevenBitStream.cs
- CookieHandler.cs
- BasePattern.cs
- OutputCache.cs
- NamedPipeConnectionPoolSettingsElement.cs
- _NestedSingleAsyncResult.cs
- WeakKeyDictionary.cs
- WebPartAuthorizationEventArgs.cs
- __ComObject.cs
- DocumentSchemaValidator.cs
- SrgsNameValueTag.cs
- _NestedSingleAsyncResult.cs
- DSACryptoServiceProvider.cs
- TabControlEvent.cs
- _LocalDataStoreMgr.cs
- HttpDictionary.cs
- NavigationWindow.cs
- GetPageCompletedEventArgs.cs
- XmlLinkedNode.cs
- CharUnicodeInfo.cs
- OptimalBreakSession.cs
- ACL.cs
- RegistrationServices.cs
- LinqDataSourceHelper.cs
- PointHitTestParameters.cs
- CacheVirtualItemsEvent.cs
- basevalidator.cs
- log.cs
- StorageBasedPackageProperties.cs
- VersionUtil.cs
- Accessible.cs
- XPathMessageFilterElementComparer.cs
- ControlValuePropertyAttribute.cs
- QualifiedCellIdBoolean.cs
- IntegerValidatorAttribute.cs
- ProcessModelSection.cs
- PipelineModuleStepContainer.cs
- AnimatedTypeHelpers.cs
- DataControlLinkButton.cs
- Filter.cs
- XslAstAnalyzer.cs
- ResourceDisplayNameAttribute.cs
- DataSetUtil.cs
- GridViewSelectEventArgs.cs
- ThreadExceptionDialog.cs
- PropertyEmitterBase.cs
- TemplateBuilder.cs
- TableRowGroup.cs
- WindowsBrush.cs
- TextElementEditingBehaviorAttribute.cs
- AuthenticationModulesSection.cs
- FileIOPermission.cs
- ListViewUpdatedEventArgs.cs
- PlacementWorkspace.cs
- Function.cs
- EndpointFilterProvider.cs
- ExtensionDataObject.cs
- UIElement3D.cs
- ParameterEditorUserControl.cs
- NetworkInformationPermission.cs
- AssemblyResourceLoader.cs
- DecimalAnimation.cs
- HwndTarget.cs
- DockAndAnchorLayout.cs
- OLEDB_Util.cs
- XPathSelfQuery.cs
- SqlMethodCallConverter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WorkflowRuntimeSection.cs
- HtmlTableRowCollection.cs
- AmbientProperties.cs
- EnumUnknown.cs
- EventEntry.cs
- ButtonBase.cs
- AppSettingsExpressionBuilder.cs
- TypeReference.cs
- Misc.cs