Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeBlockBuilder.cs
- LoginUtil.cs
- XmlSerializerAssemblyAttribute.cs
- DataSourceExpression.cs
- Stacktrace.cs
- DbCommandDefinition.cs
- ExpressionPrefixAttribute.cs
- Profiler.cs
- HostingEnvironment.cs
- ToolStrip.cs
- DataSourceCache.cs
- EntityDesignerUtils.cs
- HttpChannelHelper.cs
- DataSourceHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- List.cs
- UrlMappingsSection.cs
- BrowserDefinition.cs
- ScrollProviderWrapper.cs
- Qualifier.cs
- recordstate.cs
- XmlSequenceWriter.cs
- LinqDataSourceDisposeEventArgs.cs
- AnimationLayer.cs
- DataTable.cs
- TakeQueryOptionExpression.cs
- WebBrowser.cs
- TCEAdapterGenerator.cs
- SecurityToken.cs
- PrintDocument.cs
- ObjectKeyFrameCollection.cs
- ListItemParagraph.cs
- SizeConverter.cs
- DependencyObjectCodeDomSerializer.cs
- GridViewRowEventArgs.cs
- ToolboxItemSnapLineBehavior.cs
- SettingsAttributeDictionary.cs
- PaintEvent.cs
- DigitalSignatureProvider.cs
- SingleAnimation.cs
- StyleSelector.cs
- ClientTargetCollection.cs
- XmlSerializationWriter.cs
- DelayedRegex.cs
- ButtonDesigner.cs
- ObjectDataSourceWizardForm.cs
- MediaElementAutomationPeer.cs
- DataControlCommands.cs
- LightweightCodeGenerator.cs
- Size.cs
- figurelengthconverter.cs
- AuthenticationManager.cs
- PartBasedPackageProperties.cs
- DrawToolTipEventArgs.cs
- WinEventQueueItem.cs
- ReadContentAsBinaryHelper.cs
- DtdParser.cs
- XmlSchemas.cs
- HttpCookie.cs
- TextEditorTyping.cs
- RowUpdatingEventArgs.cs
- ExceptionValidationRule.cs
- Win32MouseDevice.cs
- WebPartMovingEventArgs.cs
- StringAnimationUsingKeyFrames.cs
- ScrollChrome.cs
- AppDomainProtocolHandler.cs
- SingletonConnectionReader.cs
- MatrixTransform.cs
- COM2IProvidePropertyBuilderHandler.cs
- DataPagerFieldCollection.cs
- MatrixAnimationUsingPath.cs
- IsolatedStorageFilePermission.cs
- DateTime.cs
- SqlParameterizer.cs
- TypeSystem.cs
- TypeLoadException.cs
- DrawingContextWalker.cs
- Hashtable.cs
- ComNativeDescriptor.cs
- CollaborationHelperFunctions.cs
- Polyline.cs
- HandlerBase.cs
- AssemblyName.cs
- ReturnEventArgs.cs
- UserControlDocumentDesigner.cs
- TextPattern.cs
- Base64Stream.cs
- PermissionAttributes.cs
- PeerName.cs
- MethodAccessException.cs
- TextEffectResolver.cs
- ActivityExecutionFilter.cs
- ParseHttpDate.cs
- ParenthesizePropertyNameAttribute.cs
- UrlParameterReader.cs
- ToolZone.cs
- RC2.cs
- Shared.cs
- OleDbConnectionInternal.cs