Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DesignerLabelAdapter.cs
- AnnotationObservableCollection.cs
- TrustSection.cs
- SplitContainer.cs
- BrowserTree.cs
- XmlReflectionMember.cs
- ProxyOperationRuntime.cs
- DataGridViewComboBoxEditingControl.cs
- SrgsOneOf.cs
- EnumMemberAttribute.cs
- SimpleMailWebEventProvider.cs
- ToolBarTray.cs
- TaskSchedulerException.cs
- _HelperAsyncResults.cs
- OleDbDataReader.cs
- PopupControlService.cs
- DATA_BLOB.cs
- StrongNamePublicKeyBlob.cs
- AssemblyBuilder.cs
- NumberFormatInfo.cs
- MappingModelBuildProvider.cs
- TableItemPattern.cs
- Single.cs
- ParsedAttributeCollection.cs
- EventRouteFactory.cs
- OpacityConverter.cs
- SystemEvents.cs
- XamlWrapperReaders.cs
- InProcStateClientManager.cs
- DataTablePropertyDescriptor.cs
- TraceContextEventArgs.cs
- SqlPersonalizationProvider.cs
- ReadOnlyCollection.cs
- Int16AnimationBase.cs
- AnnotationObservableCollection.cs
- RowTypePropertyElement.cs
- PropertyDescriptorGridEntry.cs
- WS2007FederationHttpBinding.cs
- TimeoutValidationAttribute.cs
- InvokePatternIdentifiers.cs
- ExpressionList.cs
- SafeNativeMethods.cs
- ProfileEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- ExpandoObject.cs
- AsyncOperation.cs
- DataGridViewCellFormattingEventArgs.cs
- UserControl.cs
- RelationshipDetailsCollection.cs
- SynchronizedInputProviderWrapper.cs
- SqlDataSourceCache.cs
- AttachedProperty.cs
- XmlToDatasetMap.cs
- SqlInternalConnectionTds.cs
- ToolBar.cs
- SoapReflectionImporter.cs
- SiteMapPathDesigner.cs
- LoginUtil.cs
- SQLInt32.cs
- BCryptSafeHandles.cs
- BidirectionalDictionary.cs
- HtmlControlPersistable.cs
- Nullable.cs
- BorderGapMaskConverter.cs
- ScriptingAuthenticationServiceSection.cs
- MetadataArtifactLoaderResource.cs
- ConfigXmlElement.cs
- SettingsPropertyValueCollection.cs
- SequentialWorkflowHeaderFooter.cs
- PolyLineSegment.cs
- RadioButton.cs
- SafeLocalAllocation.cs
- XmlSchemaObjectTable.cs
- parserscommon.cs
- ReflectionServiceProvider.cs
- TypeLoadException.cs
- DefaultBinder.cs
- XmlName.cs
- FlowDocumentPaginator.cs
- ConfigXmlCDataSection.cs
- _FtpDataStream.cs
- StaticSiteMapProvider.cs
- DesignerAdapterUtil.cs
- BaseValidator.cs
- DbSetClause.cs
- DiscoveryClientDocuments.cs
- DataControlFieldsEditor.cs
- RotateTransform3D.cs
- ProjectionAnalyzer.cs
- ValueTypeFixupInfo.cs
- DocumentSequenceHighlightLayer.cs
- Regex.cs
- CodeCatchClauseCollection.cs
- Animatable.cs
- QuaternionValueSerializer.cs
- AppDomain.cs
- ZipPackage.cs
- Operators.cs
- NegationPusher.cs
- KeyEvent.cs