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
- AsymmetricCryptoHandle.cs
- SecurityElement.cs
- Stack.cs
- FixedHighlight.cs
- AutoGeneratedField.cs
- ServiceDescriptionData.cs
- MembershipPasswordException.cs
- IsolatedStorageFilePermission.cs
- WebPartMenuStyle.cs
- InvariantComparer.cs
- DialogResultConverter.cs
- QilInvokeEarlyBound.cs
- HatchBrush.cs
- _BasicClient.cs
- StateMachineSubscriptionManager.cs
- MeshGeometry3D.cs
- UpdateManifestForBrowserApplication.cs
- PartitionedDataSource.cs
- CodeArrayCreateExpression.cs
- ColumnClickEvent.cs
- HostedTransportConfigurationManager.cs
- TargetInvocationException.cs
- RichTextBox.cs
- EntityDataSourceEntityTypeFilterItem.cs
- EntityDataSourceWizardForm.cs
- SendMailErrorEventArgs.cs
- SafeLocalMemHandle.cs
- TreeNodeCollection.cs
- HtmlContainerControl.cs
- DataGridViewRowCancelEventArgs.cs
- PrePrepareMethodAttribute.cs
- Section.cs
- FrameworkElement.cs
- NameTable.cs
- ProjectionCamera.cs
- DataGridCommandEventArgs.cs
- SqlCommand.cs
- IsolationInterop.cs
- KnownTypesProvider.cs
- UnSafeCharBuffer.cs
- printdlgexmarshaler.cs
- RoutedEventArgs.cs
- TriState.cs
- FlowDocumentPageViewerAutomationPeer.cs
- WebControlAdapter.cs
- IndicShape.cs
- FactoryGenerator.cs
- ElementHostAutomationPeer.cs
- NegationPusher.cs
- PingOptions.cs
- RequestCacheManager.cs
- WpfKnownMember.cs
- DesignerAttribute.cs
- BlobPersonalizationState.cs
- CommentAction.cs
- RawAppCommandInputReport.cs
- DoubleAnimationBase.cs
- HitTestResult.cs
- VisualBasic.cs
- TreeNodeBinding.cs
- DataRowExtensions.cs
- CollectionDataContract.cs
- SessionPageStateSection.cs
- x509utils.cs
- PropertySourceInfo.cs
- RepeatButton.cs
- FormatConvertedBitmap.cs
- InkCanvasSelectionAdorner.cs
- XmlSchemaComplexContentRestriction.cs
- SqlCommand.cs
- DataBindingList.cs
- NamespaceList.cs
- RNGCryptoServiceProvider.cs
- EdmProperty.cs
- WebService.cs
- OutputCacheModule.cs
- FixedSOMImage.cs
- HtmlTableCell.cs
- XPathSelfQuery.cs
- StorageComplexPropertyMapping.cs
- ProfileGroupSettingsCollection.cs
- PeerIPHelper.cs
- SpellerHighlightLayer.cs
- MouseDevice.cs
- OneToOneMappingSerializer.cs
- TypeLibConverter.cs
- InvalidDataException.cs
- UIElementCollection.cs
- MenuItemStyle.cs
- ToolStripDropDownMenu.cs
- CornerRadiusConverter.cs
- WsiProfilesElement.cs
- CodeTypeMember.cs
- ListViewUpdatedEventArgs.cs
- OutputWindow.cs
- PolyBezierSegmentFigureLogic.cs
- ActionFrame.cs
- DataGridHeaderBorder.cs
- _ShellExpression.cs
- XmlUrlResolver.cs