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
- PageEventArgs.cs
- FlowDocumentView.cs
- KnownTypesProvider.cs
- Exceptions.cs
- ServiceChannelManager.cs
- ToolStripMenuItem.cs
- RadioButtonRenderer.cs
- ProcessHostFactoryHelper.cs
- ContractBase.cs
- EventEntry.cs
- ServiceRouteHandler.cs
- Merger.cs
- ExpandSegmentCollection.cs
- ImageSource.cs
- StyleTypedPropertyAttribute.cs
- AudioDeviceOut.cs
- ZoneLinkButton.cs
- ColorTransform.cs
- AppDomainShutdownMonitor.cs
- ZoneLinkButton.cs
- UpDownBase.cs
- Rotation3DAnimation.cs
- RepeatEnumerable.cs
- XmlDataSourceNodeDescriptor.cs
- WorkflowTraceTransfer.cs
- CompressStream.cs
- BigInt.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SelectionGlyph.cs
- DbConnectionFactory.cs
- StandardMenuStripVerb.cs
- XmlDataLoader.cs
- DesigntimeLicenseContextSerializer.cs
- MenuItem.cs
- PeerCollaborationPermission.cs
- TableHeaderCell.cs
- XPathScanner.cs
- ScrollChangedEventArgs.cs
- CodeCommentStatement.cs
- EnumUnknown.cs
- ClientScriptItemCollection.cs
- LineSegment.cs
- StrokeRenderer.cs
- CompositeTypefaceMetrics.cs
- Events.cs
- SelectionChangedEventArgs.cs
- OleCmdHelper.cs
- ErrorFormatterPage.cs
- SerializerProvider.cs
- ToolStripLocationCancelEventArgs.cs
- NumericPagerField.cs
- HttpSessionStateWrapper.cs
- SctClaimSerializer.cs
- XmlIterators.cs
- EnumConverter.cs
- TraceHandlerErrorFormatter.cs
- MeasurementDCInfo.cs
- DesignerVerbCollection.cs
- ModifyActivitiesPropertyDescriptor.cs
- FieldAccessException.cs
- BrowserDefinitionCollection.cs
- FontDriver.cs
- DecoratedNameAttribute.cs
- XPathNodeIterator.cs
- XamlTemplateSerializer.cs
- DataTableReaderListener.cs
- DesignerOptionService.cs
- UpDownBase.cs
- Int32.cs
- NoClickablePointException.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlSerializationWriter.cs
- PenThreadWorker.cs
- ResourceDisplayNameAttribute.cs
- PerformanceCounterPermissionAttribute.cs
- DocumentReferenceCollection.cs
- XmlDocumentType.cs
- EmptyEnumerator.cs
- StandardToolWindows.cs
- AssemblySettingAttributes.cs
- XmlAnyAttributeAttribute.cs
- ReachSerializationCacheItems.cs
- FontSourceCollection.cs
- IISUnsafeMethods.cs
- ForwardPositionQuery.cs
- ObjectItemAssemblyLoader.cs
- Privilege.cs
- ServiceDescriptionSerializer.cs
- MediaContextNotificationWindow.cs
- infer.cs
- SqlProcedureAttribute.cs
- StyleSelector.cs
- EntityTemplateUserControl.cs
- HttpsChannelListener.cs
- Char.cs
- SHA512.cs
- InputLanguage.cs
- TraceData.cs
- DataGridViewRowCollection.cs
- RijndaelManagedTransform.cs