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
- ControlParser.cs
- ContextActivityUtils.cs
- BitmapScalingModeValidation.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlAttributeOverrides.cs
- ListViewGroupConverter.cs
- XPathConvert.cs
- DropAnimation.xaml.cs
- ControlDesignerState.cs
- webbrowsersite.cs
- AdPostCacheSubstitution.cs
- Fault.cs
- XmlDataSourceView.cs
- PropertyGrid.cs
- _NTAuthentication.cs
- ConfigurationPropertyAttribute.cs
- PropertyTab.cs
- _NegoState.cs
- OptimizerPatterns.cs
- BitmapInitialize.cs
- CompiledRegexRunnerFactory.cs
- CannotUnloadAppDomainException.cs
- FreezableCollection.cs
- MenuTracker.cs
- TextElementEnumerator.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- NamedPipeChannelFactory.cs
- RotationValidation.cs
- SafeReversePInvokeHandle.cs
- XhtmlBasicTextBoxAdapter.cs
- SecureEnvironment.cs
- DragDropManager.cs
- ChannelSinkStacks.cs
- ObjectViewListener.cs
- PointAnimationBase.cs
- PassportPrincipal.cs
- Win32.cs
- odbcmetadatafactory.cs
- ScrollChangedEventArgs.cs
- SafeSecurityHandles.cs
- ValueHandle.cs
- HttpInputStream.cs
- XmlResolver.cs
- WebPartTransformerAttribute.cs
- DesignTimeSiteMapProvider.cs
- SpeechEvent.cs
- PageRanges.cs
- ContextMenuService.cs
- TriState.cs
- Debug.cs
- RelationalExpressions.cs
- XpsSerializerFactory.cs
- _ContextAwareResult.cs
- BamlStream.cs
- XmlAttribute.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- UpdateManifestForBrowserApplication.cs
- WebPartActionVerb.cs
- PartialArray.cs
- ProcessHost.cs
- DataGridViewDesigner.cs
- BatchServiceHost.cs
- ColorInterpolationModeValidation.cs
- TemplateXamlParser.cs
- DecoderBestFitFallback.cs
- Win32.cs
- GenericUI.cs
- ApplicationDirectoryMembershipCondition.cs
- DetailsViewUpdateEventArgs.cs
- StorageAssociationSetMapping.cs
- RowVisual.cs
- AttributeQuery.cs
- NullReferenceException.cs
- PtsCache.cs
- ToolStripSplitButton.cs
- ContractCodeDomInfo.cs
- CodeTypeDelegate.cs
- InputProviderSite.cs
- HelpProvider.cs
- ConstructorExpr.cs
- Byte.cs
- TextFormatterImp.cs
- ClientApiGenerator.cs
- ErrorFormatterPage.cs
- ChannelPoolSettingsElement.cs
- TypeBuilderInstantiation.cs
- WebPartUtil.cs
- SignalGate.cs
- SkinBuilder.cs
- RuleSettingsCollection.cs
- XmlSchemaSimpleContent.cs
- NetCodeGroup.cs
- GridViewColumnHeader.cs
- Int32CollectionValueSerializer.cs
- ScriptRegistrationManager.cs
- xmlsaver.cs
- DES.cs
- ObjectDataSourceView.cs
- COM2PictureConverter.cs
- ConnectorRouter.cs