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
- isolationinterop.cs
- _FixedSizeReader.cs
- Underline.cs
- NamespaceCollection.cs
- WebPartDeleteVerb.cs
- XmlCharType.cs
- PrefixHandle.cs
- WindowsPrincipal.cs
- TableItemStyle.cs
- SQLConvert.cs
- SqlGatherProducedAliases.cs
- MenuRendererClassic.cs
- Interlocked.cs
- ApplicationHost.cs
- GridViewUpdatedEventArgs.cs
- AspNetRouteServiceHttpHandler.cs
- FormViewRow.cs
- TaiwanLunisolarCalendar.cs
- DataGridViewCellCancelEventArgs.cs
- AssemblySettingAttributes.cs
- ComponentRenameEvent.cs
- MTConfigUtil.cs
- StringWriter.cs
- TextShapeableCharacters.cs
- LinearKeyFrames.cs
- FindCriteria.cs
- BinaryCommonClasses.cs
- FixedDocumentPaginator.cs
- _SafeNetHandles.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DrawTreeNodeEventArgs.cs
- ScriptingProfileServiceSection.cs
- ValueTypeFixupInfo.cs
- cryptoapiTransform.cs
- DesignerView.xaml.cs
- PenThread.cs
- PropertyValueChangedEvent.cs
- ExtentKey.cs
- HelpInfo.cs
- FormsAuthenticationConfiguration.cs
- XmlBoundElement.cs
- EdmItemCollection.cs
- FixedSOMPageElement.cs
- Win32MouseDevice.cs
- FacetDescriptionElement.cs
- KnownBoxes.cs
- BooleanAnimationBase.cs
- COMException.cs
- RemotingSurrogateSelector.cs
- listitem.cs
- DesignerAttribute.cs
- TextWriterTraceListener.cs
- CommunicationObjectAbortedException.cs
- AdornerDecorator.cs
- SolidColorBrush.cs
- SerialPinChanges.cs
- ModelFactory.cs
- _RegBlobWebProxyDataBuilder.cs
- RichTextBoxAutomationPeer.cs
- DoubleCollection.cs
- XmlNodeComparer.cs
- DllNotFoundException.cs
- Config.cs
- BuildManager.cs
- Model3DGroup.cs
- OracleString.cs
- MimeWriter.cs
- PrintDialogException.cs
- ConfigurationElementCollection.cs
- XmlSchemaComplexType.cs
- InvokeGenerator.cs
- CodeAssignStatement.cs
- ConnectionsZoneDesigner.cs
- EntityDataSourceContextCreatingEventArgs.cs
- AxHost.cs
- WCFServiceClientProxyGenerator.cs
- XPathDescendantIterator.cs
- ContextMenu.cs
- HMACSHA384.cs
- XmlReaderSettings.cs
- FormsAuthenticationTicket.cs
- ControlPaint.cs
- LineMetrics.cs
- DataGridViewCellFormattingEventArgs.cs
- CodeTypeReferenceExpression.cs
- ProgressChangedEventArgs.cs
- Subset.cs
- ProviderSettings.cs
- ListMarkerSourceInfo.cs
- DocumentOrderComparer.cs
- ControllableStoryboardAction.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Quack.cs
- ByteStack.cs
- NetworkInterface.cs
- EventRouteFactory.cs
- TrustDriver.cs
- QualifiedId.cs
- RequestCacheManager.cs
- GridViewAutomationPeer.cs