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
- MsmqIntegrationProcessProtocolHandler.cs
- ExpressionConverter.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlNodeAnnotation.cs
- Compilation.cs
- ParameterElement.cs
- DataGridViewTopRowAccessibleObject.cs
- WithStatement.cs
- AnimationStorage.cs
- columnmapkeybuilder.cs
- ControlDesignerState.cs
- Visitor.cs
- StyleXamlParser.cs
- Internal.cs
- PageThemeBuildProvider.cs
- GlyphShapingProperties.cs
- XmlSerializerFactory.cs
- DispatchProxy.cs
- FilteredXmlReader.cs
- Brushes.cs
- PrivilegedConfigurationManager.cs
- MessageOperationFormatter.cs
- DescendantBaseQuery.cs
- ParameterToken.cs
- PersonalizationAdministration.cs
- StylusPointPropertyInfo.cs
- StringFreezingAttribute.cs
- CurrentChangingEventArgs.cs
- DefaultSettingsSection.cs
- ContentTextAutomationPeer.cs
- NameTable.cs
- IconHelper.cs
- invalidudtexception.cs
- TraceSection.cs
- ellipse.cs
- FormsAuthenticationCredentials.cs
- CompositeCollectionView.cs
- ServiceBuildProvider.cs
- SurrogateChar.cs
- DataBindingList.cs
- ApplicationDirectoryMembershipCondition.cs
- ValuePattern.cs
- MarkupCompilePass2.cs
- EncodingStreamWrapper.cs
- NestedContainer.cs
- ExtenderControl.cs
- TemplateComponentConnector.cs
- Simplifier.cs
- AttributeCollection.cs
- safex509handles.cs
- _UncName.cs
- CodeDOMUtility.cs
- AdCreatedEventArgs.cs
- VirtualizedContainerService.cs
- SecurityHelper.cs
- ChannelDispatcherBase.cs
- XmlSchemaExporter.cs
- BuilderInfo.cs
- BasicHttpBindingCollectionElement.cs
- ExtendedPropertyDescriptor.cs
- InputLanguageSource.cs
- XmlAttribute.cs
- DataControlImageButton.cs
- XmlnsCache.cs
- PreloadedPackages.cs
- HiddenField.cs
- QilLoop.cs
- RedirectionProxy.cs
- UndoManager.cs
- WeakRefEnumerator.cs
- DateRangeEvent.cs
- DataGridViewCheckBoxColumn.cs
- AlternateViewCollection.cs
- TagMapInfo.cs
- RichTextBox.cs
- MethodImplAttribute.cs
- HotCommands.cs
- ClassicBorderDecorator.cs
- NamespaceInfo.cs
- MergeFilterQuery.cs
- LogArchiveSnapshot.cs
- PerformanceCounterLib.cs
- PrintEvent.cs
- ParserContext.cs
- SystemInformation.cs
- LogicalMethodInfo.cs
- GcSettings.cs
- DynamicActionMessageFilter.cs
- initElementDictionary.cs
- BitmapCache.cs
- StylusButtonCollection.cs
- PenThreadPool.cs
- CommandEventArgs.cs
- DependencyProperty.cs
- EventMappingSettings.cs
- AuthenticatedStream.cs
- Listen.cs
- TrackingMemoryStreamFactory.cs
- FileDetails.cs
- QueryStringConverter.cs