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
- DetailsViewUpdateEventArgs.cs
- CodeGen.cs
- ListViewDeletedEventArgs.cs
- QueryHandler.cs
- RepeaterItem.cs
- DefaultTraceListener.cs
- dsa.cs
- MenuItem.cs
- RefreshPropertiesAttribute.cs
- MethodBody.cs
- CapabilitiesAssignment.cs
- WinFormsComponentEditor.cs
- ServiceProviders.cs
- AssociationSet.cs
- Automation.cs
- IconBitmapDecoder.cs
- RtfControlWordInfo.cs
- AssemblyInfo.cs
- BooleanSwitch.cs
- listitem.cs
- XmlAttribute.cs
- MarkupObject.cs
- ClassImporter.cs
- TypeConverterMarkupExtension.cs
- SecurityToken.cs
- XmlArrayAttribute.cs
- PointCollection.cs
- Schema.cs
- JsonDataContract.cs
- RectAnimationUsingKeyFrames.cs
- SQlBooleanStorage.cs
- InvokePatternIdentifiers.cs
- InternalPermissions.cs
- UnsafeNativeMethods.cs
- TextSerializer.cs
- DocumentXPathNavigator.cs
- ServerProtocol.cs
- TransformProviderWrapper.cs
- LambdaCompiler.Lambda.cs
- CallContext.cs
- ValidatorCollection.cs
- prompt.cs
- SystemIPInterfaceProperties.cs
- ReadOnlyDictionary.cs
- FrameworkElementFactory.cs
- GAC.cs
- SurrogateSelector.cs
- Types.cs
- PropertyGridEditorPart.cs
- HwndSubclass.cs
- FixedSOMLineRanges.cs
- IriParsingElement.cs
- StaticFileHandler.cs
- Adorner.cs
- WebSysDefaultValueAttribute.cs
- GenericPrincipal.cs
- remotingproxy.cs
- TimeoutException.cs
- SafeFileHandle.cs
- XsltArgumentList.cs
- XmlBinaryWriter.cs
- RequestNavigateEventArgs.cs
- ExecutionContext.cs
- TypeDescriptionProvider.cs
- WorkflowMarkupSerializationManager.cs
- TextBoxAutomationPeer.cs
- WebPartConnectionCollection.cs
- TabRenderer.cs
- Table.cs
- MediaScriptCommandRoutedEventArgs.cs
- WebControlToolBoxItem.cs
- WorkflowCompensationBehavior.cs
- ScrollEvent.cs
- SafeNativeMethodsOther.cs
- SemanticResultKey.cs
- ByteAnimation.cs
- EntityDataSourceChangingEventArgs.cs
- BasicHttpMessageCredentialType.cs
- SystemWebExtensionsSectionGroup.cs
- MetadataItemEmitter.cs
- CompilationUtil.cs
- OSFeature.cs
- ReservationNotFoundException.cs
- Exception.cs
- DataGridViewCellValidatingEventArgs.cs
- StoreContentChangedEventArgs.cs
- ServiceHttpHandlerFactory.cs
- Exceptions.cs
- MetadataArtifactLoaderResource.cs
- ParentControlDesigner.cs
- CodePrimitiveExpression.cs
- RequestCache.cs
- XmlSchemaImporter.cs
- GeneratedCodeAttribute.cs
- TextStore.cs
- ColorConvertedBitmapExtension.cs
- SqlAggregateChecker.cs
- FormatException.cs
- ToolStripPanel.cs
- TableLayoutRowStyleCollection.cs