Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Pkcs9Attribute.cs
- AssemblyHash.cs
- Cursor.cs
- CodePageEncoding.cs
- SimpleApplicationHost.cs
- FileDialog_Vista_Interop.cs
- DataGridCellsPresenter.cs
- AssemblyNameProxy.cs
- ConfigurationValues.cs
- RuntimeIdentifierPropertyAttribute.cs
- Label.cs
- DbParameterCollection.cs
- BehaviorEditorPart.cs
- ElementInit.cs
- CustomTypeDescriptor.cs
- UntrustedRecipientException.cs
- SapiRecognizer.cs
- ImageList.cs
- Matrix3DValueSerializer.cs
- DbDeleteCommandTree.cs
- AccessibleObject.cs
- PeerObject.cs
- dbdatarecord.cs
- AnnotationResource.cs
- Vector3D.cs
- PagedDataSource.cs
- UIPermission.cs
- DetailsViewRowCollection.cs
- SQLByte.cs
- ReadOnlyActivityGlyph.cs
- GridView.cs
- InstanceHandleConflictException.cs
- PersonalizationProviderCollection.cs
- ProfileParameter.cs
- ExtensionWindowHeader.cs
- TableParagraph.cs
- MarkupCompiler.cs
- LoginView.cs
- DesignerActionVerbList.cs
- TreeViewDesigner.cs
- EncoderFallback.cs
- Speller.cs
- ScrollViewerAutomationPeer.cs
- EnumValAlphaComparer.cs
- ImageDrawing.cs
- GeneralTransform3DTo2D.cs
- WorkflowViewElement.cs
- WebPartCatalogCloseVerb.cs
- StrongBox.cs
- DeclaredTypeElementCollection.cs
- XmlParser.cs
- X509SecurityTokenAuthenticator.cs
- StylusButtonEventArgs.cs
- NavigationService.cs
- HelpInfo.cs
- Contracts.cs
- _LocalDataStoreMgr.cs
- FtpWebResponse.cs
- TransferMode.cs
- TemplateInstanceAttribute.cs
- ObjectItemCollection.cs
- WebDisplayNameAttribute.cs
- HttpHandlersSection.cs
- TextServicesManager.cs
- ComboBoxAutomationPeer.cs
- StrokeNodeOperations2.cs
- LiteralControl.cs
- ZipIOExtraFieldPaddingElement.cs
- InfoCardSymmetricCrypto.cs
- SignatureHelper.cs
- CurrencyWrapper.cs
- WebBrowserPermission.cs
- OutputCacheSettings.cs
- CodeThrowExceptionStatement.cs
- LinqDataSource.cs
- WebCategoryAttribute.cs
- LoginCancelEventArgs.cs
- TemplateAction.cs
- SpecialTypeDataContract.cs
- SyndicationFeed.cs
- SimpleType.cs
- OdbcConnectionHandle.cs
- DocumentViewerConstants.cs
- CompilerResults.cs
- WaitForChangedResult.cs
- FigureParagraph.cs
- WindowsNonControl.cs
- _CacheStreams.cs
- ModuleBuilder.cs
- DataSourceProvider.cs
- AttributeCollection.cs
- Vector3DCollection.cs
- ItemCheckedEvent.cs
- ImageCodecInfoPrivate.cs
- Brush.cs
- ProfileService.cs
- CrossAppDomainChannel.cs
- OleDbSchemaGuid.cs
- XmlCDATASection.cs
- IListConverters.cs