Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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. //---------------------------------------------------------------------------- // // 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
- ToolStripSplitStackLayout.cs
- DeferredBinaryDeserializerExtension.cs
- OleDbErrorCollection.cs
- CustomAttributeBuilder.cs
- CacheMode.cs
- Header.cs
- ObjectDataSourceFilteringEventArgs.cs
- ImagingCache.cs
- XmlLanguageConverter.cs
- XPathNavigator.cs
- QuaternionAnimation.cs
- OleDbWrapper.cs
- PermissionSetEnumerator.cs
- DataGridColumnEventArgs.cs
- EditBehavior.cs
- ServerIdentity.cs
- SpellerStatusTable.cs
- SqlAliaser.cs
- IListConverters.cs
- WizardStepCollectionEditor.cs
- TreeViewDesigner.cs
- AssertFilter.cs
- CreateUserWizardAutoFormat.cs
- ValidateNames.cs
- MSG.cs
- ResXBuildProvider.cs
- FastEncoderWindow.cs
- DesignerVerb.cs
- MergeEnumerator.cs
- PropertyGeneratedEventArgs.cs
- HttpWriter.cs
- UserMapPath.cs
- WrapPanel.cs
- FormsAuthenticationEventArgs.cs
- XmlLanguageConverter.cs
- DataContract.cs
- XamlSerializerUtil.cs
- EntityConnection.cs
- DataMember.cs
- FontConverter.cs
- Exceptions.cs
- EnumCodeDomSerializer.cs
- SchemaImporter.cs
- ThemeableAttribute.cs
- FontDriver.cs
- SqlDependency.cs
- SqlVisitor.cs
- TextComposition.cs
- InstanceOwnerException.cs
- EntityDataSourceContainerNameItem.cs
- ManipulationStartingEventArgs.cs
- DataReaderContainer.cs
- FileVersionInfo.cs
- SimpleApplicationHost.cs
- CallbackValidatorAttribute.cs
- Baml2006KeyRecord.cs
- CodeMethodMap.cs
- UpdateCommand.cs
- ToolboxBitmapAttribute.cs
- XmlSchemaAttribute.cs
- DesignerTransactionCloseEvent.cs
- GZipDecoder.cs
- EntityWrapper.cs
- SinglePageViewer.cs
- Image.cs
- DocumentViewerBaseAutomationPeer.cs
- DirectionalLight.cs
- ObservableDictionary.cs
- ConnectionPoint.cs
- FamilyTypefaceCollection.cs
- Imaging.cs
- Delay.cs
- Ipv6Element.cs
- PartialTrustHelpers.cs
- UserControlCodeDomTreeGenerator.cs
- ListItem.cs
- DBSchemaTable.cs
- SqlRecordBuffer.cs
- Cursors.cs
- SrgsGrammar.cs
- User.cs
- StackOverflowException.cs
- AmbientLight.cs
- XmlCharacterData.cs
- WindowInteractionStateTracker.cs
- ComplusEndpointConfigContainer.cs
- ReachDocumentSequenceSerializer.cs
- FusionWrap.cs
- AlignmentXValidation.cs
- CommandField.cs
- RuleValidation.cs
- ThreadExceptionEvent.cs
- ValidatorAttribute.cs
- TransformGroup.cs
- CrossAppDomainChannel.cs
- ZipIOLocalFileDataDescriptor.cs
- SoapAttributeOverrides.cs
- ScrollableControlDesigner.cs
- _UncName.cs
- CryptographicAttribute.cs