Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BinaryCommonClasses.cs
- Attribute.cs
- ObjectReferenceStack.cs
- FormsAuthenticationConfiguration.cs
- SchemaTableOptionalColumn.cs
- ComponentRenameEvent.cs
- FixedTextContainer.cs
- NumericUpDownAcceleration.cs
- TranslateTransform3D.cs
- TdsParserStateObject.cs
- PersonalizablePropertyEntry.cs
- SafeHandles.cs
- HopperCache.cs
- documentsequencetextcontainer.cs
- VisualStyleRenderer.cs
- DataGridRowEventArgs.cs
- ToolStripHighContrastRenderer.cs
- SettingsPropertyWrongTypeException.cs
- ExpressionCopier.cs
- TextViewElement.cs
- WebReferenceCollection.cs
- SpecialNameAttribute.cs
- BitConverter.cs
- CodePageEncoding.cs
- DocumentSequence.cs
- PointAnimationBase.cs
- CompressStream.cs
- DefaultTextStoreTextComposition.cs
- ProcessHostServerConfig.cs
- FieldAccessException.cs
- FileFormatException.cs
- ResourceDefaultValueAttribute.cs
- sqlstateclientmanager.cs
- SqlError.cs
- DataGridViewControlCollection.cs
- CodeTypeReferenceExpression.cs
- TextLineResult.cs
- DirectoryRootQuery.cs
- SystemFonts.cs
- LicFileLicenseProvider.cs
- AnnouncementSendsAsyncResult.cs
- GridViewRow.cs
- UnauthorizedWebPart.cs
- RichTextBoxAutomationPeer.cs
- EntityDataSourceSelectingEventArgs.cs
- AstNode.cs
- LineServicesCallbacks.cs
- Pick.cs
- ZoneIdentityPermission.cs
- OletxTransactionManager.cs
- EventEntry.cs
- GlyphRunDrawing.cs
- MetafileHeader.cs
- SqlTriggerContext.cs
- OutOfMemoryException.cs
- HttpConfigurationContext.cs
- ReadOnlyHierarchicalDataSource.cs
- OpenTypeCommon.cs
- AnimationException.cs
- DependencyPropertyConverter.cs
- UiaCoreProviderApi.cs
- RootNamespaceAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- InputLanguageEventArgs.cs
- XmlTextEncoder.cs
- SuppressMergeCheckAttribute.cs
- MDIWindowDialog.cs
- CodeMethodInvokeExpression.cs
- ExpandableObjectConverter.cs
- LoadWorkflowByInstanceKeyCommand.cs
- CodeArrayIndexerExpression.cs
- New.cs
- DeferredSelectedIndexReference.cs
- WsdlWriter.cs
- FamilyCollection.cs
- Visual3D.cs
- ACL.cs
- CustomValidator.cs
- DesignerDataTableBase.cs
- DrawToolTipEventArgs.cs
- KernelTypeValidation.cs
- SelectionPatternIdentifiers.cs
- RoleGroupCollection.cs
- ResolveResponseInfo.cs
- SqlReferenceCollection.cs
- IisTraceWebEventProvider.cs
- SqlServer2KCompatibilityCheck.cs
- ClientRuntimeConfig.cs
- WSMessageEncoding.cs
- CompositeScriptReferenceEventArgs.cs
- XmlSchemaImporter.cs
- HttpResponseInternalWrapper.cs
- FileLoadException.cs
- Point.cs
- ColorTranslator.cs
- SignatureToken.cs
- InputLanguageManager.cs
- UnsignedPublishLicense.cs
- BehaviorEditorPart.cs
- SettingsBase.cs