Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- ElasticEase.cs
- SizeLimitedCache.cs
- UserMapPath.cs
- RepeaterItemCollection.cs
- ConfigurationProperty.cs
- TemplateInstanceAttribute.cs
- DesignerHost.cs
- FlowPosition.cs
- PcmConverter.cs
- XmlNodeChangedEventArgs.cs
- XmlUTF8TextWriter.cs
- BindingCollectionElement.cs
- GridViewHeaderRowPresenter.cs
- ExternalFile.cs
- SafeNativeMethods.cs
- XhtmlBasicCalendarAdapter.cs
- TablePatternIdentifiers.cs
- SourceElementsCollection.cs
- AlphabeticalEnumConverter.cs
- VisualBrush.cs
- CategoryAttribute.cs
- ImportCatalogPart.cs
- ListViewTableCell.cs
- WebPartZone.cs
- PointAnimationUsingKeyFrames.cs
- GenericPrincipal.cs
- HttpWebRequest.cs
- IDQuery.cs
- CodeTryCatchFinallyStatement.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DataGridView.cs
- TextTreeRootTextBlock.cs
- DataViewManagerListItemTypeDescriptor.cs
- RegisteredScript.cs
- DesignBindingEditor.cs
- AddInEnvironment.cs
- MultiTrigger.cs
- TreeNode.cs
- FrameworkElementAutomationPeer.cs
- APCustomTypeDescriptor.cs
- RoleGroupCollection.cs
- ToolTip.cs
- PartialList.cs
- CacheOutputQuery.cs
- FixUp.cs
- safelinkcollection.cs
- ResXDataNode.cs
- InternalPermissions.cs
- ApplicationProxyInternal.cs
- EdmComplexPropertyAttribute.cs
- TemplateManager.cs
- DataRowComparer.cs
- ByteStreamGeometryContext.cs
- Splitter.cs
- JournalEntry.cs
- CallId.cs
- Model3DCollection.cs
- FormView.cs
- WindowsListBox.cs
- Funcletizer.cs
- URLMembershipCondition.cs
- DataObject.cs
- UserNameSecurityToken.cs
- OdbcHandle.cs
- UntrustedRecipientException.cs
- FormsAuthenticationEventArgs.cs
- PropertyValueChangedEvent.cs
- CodeParameterDeclarationExpressionCollection.cs
- Clipboard.cs
- FixedSOMLineCollection.cs
- NumberSubstitution.cs
- FileInfo.cs
- TableStyle.cs
- BamlRecordHelper.cs
- XmlQualifiedNameTest.cs
- EventLogPermissionEntryCollection.cs
- TextAdaptor.cs
- WebPartMinimizeVerb.cs
- TagMapInfo.cs
- _TimerThread.cs
- OdbcCommandBuilder.cs
- DataMember.cs
- AssemblyGen.cs
- CheckBoxList.cs
- Collection.cs
- Attributes.cs
- MatrixTransform.cs
- XmlQuerySequence.cs
- QueryModel.cs
- ContactManager.cs
- EventDescriptorCollection.cs
- MultipleViewPattern.cs
- TypeLibConverter.cs
- DataObjectMethodAttribute.cs
- PrinterSettings.cs
- sqlinternaltransaction.cs
- ProbeMatchesMessage11.cs
- MdiWindowListItemConverter.cs
- MaskedTextBox.cs
- HyperLinkField.cs