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
- DataGridViewHitTestInfo.cs
- PageRanges.cs
- ChannelSinkStacks.cs
- BaseDataBoundControl.cs
- XmlKeywords.cs
- TreeView.cs
- ToolBarButton.cs
- MenuRendererStandards.cs
- XmlTextReaderImplHelpers.cs
- ToolStrip.cs
- SBCSCodePageEncoding.cs
- FilterElement.cs
- BindableTemplateBuilder.cs
- AutoResetEvent.cs
- InkCanvasSelection.cs
- BamlTreeUpdater.cs
- RoleServiceManager.cs
- GenericUriParser.cs
- Visual.cs
- SqlSelectStatement.cs
- FixedSOMPageElement.cs
- XmlSiteMapProvider.cs
- SessionPageStateSection.cs
- TextTreeUndo.cs
- BindingExpressionUncommonField.cs
- SqlDataSourceView.cs
- XmlHierarchicalDataSourceView.cs
- StyleCollection.cs
- TreeIterators.cs
- CustomValidator.cs
- DbConnectionStringCommon.cs
- SrgsText.cs
- ToolStripOverflowButton.cs
- CDSsyncETWBCLProvider.cs
- WindowsHyperlink.cs
- DataGridViewTopLeftHeaderCell.cs
- DocComment.cs
- UnitySerializationHolder.cs
- DataGridViewColumnCollection.cs
- Peer.cs
- WebPartZoneBaseDesigner.cs
- TraceSource.cs
- DPAPIProtectedConfigurationProvider.cs
- CodeGotoStatement.cs
- CqlParser.cs
- ConnectionStringSettings.cs
- TreePrinter.cs
- RadioButtonRenderer.cs
- RewritingValidator.cs
- ItemChangedEventArgs.cs
- StorageMappingFragment.cs
- DataServices.cs
- StylusPointPropertyInfo.cs
- WmlMobileTextWriter.cs
- FontFamilyValueSerializer.cs
- DataGridViewTextBoxCell.cs
- HandlerBase.cs
- PostBackTrigger.cs
- TextBreakpoint.cs
- MenuItemCollection.cs
- ImageKeyConverter.cs
- HtmlHead.cs
- SoundPlayerAction.cs
- ActivationServices.cs
- GeometryValueSerializer.cs
- precedingquery.cs
- Int32Animation.cs
- ValueType.cs
- LiteralControl.cs
- ChannelServices.cs
- TextSelectionProcessor.cs
- Cell.cs
- HtmlHead.cs
- CryptoConfig.cs
- ScrollProviderWrapper.cs
- ObjectDisposedException.cs
- ThumbAutomationPeer.cs
- ApplicationException.cs
- DetailsViewDeleteEventArgs.cs
- CachedFontFamily.cs
- ApplicationDirectoryMembershipCondition.cs
- DrawListViewItemEventArgs.cs
- VirtualizedCellInfoCollection.cs
- ServiceModelActivationSectionGroup.cs
- Win32KeyboardDevice.cs
- AddInSegmentDirectoryNotFoundException.cs
- Opcode.cs
- AstTree.cs
- UserPersonalizationStateInfo.cs
- RequestCachePolicy.cs
- RemotingServices.cs
- ReferencedAssemblyResolver.cs
- SchemaImporterExtension.cs
- AssociationTypeEmitter.cs
- ButtonAutomationPeer.cs
- DataRowView.cs
- RoleGroup.cs
- BinaryCommonClasses.cs
- ControlDesignerState.cs
- ComponentResourceKeyConverter.cs