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
- Msec.cs
- SmiRecordBuffer.cs
- ClientTargetCollection.cs
- JsonFormatWriterGenerator.cs
- StopStoryboard.cs
- ValidatingReaderNodeData.cs
- QueryExpr.cs
- URI.cs
- StructuredTypeInfo.cs
- UdpChannelFactory.cs
- SnapshotChangeTrackingStrategy.cs
- TrackingProfileCache.cs
- XmlWrappingReader.cs
- GlobalProxySelection.cs
- BuildProviderUtils.cs
- PointAnimationUsingKeyFrames.cs
- DeviceFilterEditorDialog.cs
- ContentControl.cs
- DataSourceConverter.cs
- InvokeGenerator.cs
- ToolStripAdornerWindowService.cs
- Brush.cs
- ParamArrayAttribute.cs
- WebReferencesBuildProvider.cs
- StateChangeEvent.cs
- RadioButtonFlatAdapter.cs
- CodeIdentifiers.cs
- UMPAttributes.cs
- XmlSubtreeReader.cs
- PackageFilter.cs
- ResXBuildProvider.cs
- PropertyGroupDescription.cs
- JsonMessageEncoderFactory.cs
- ImageListStreamer.cs
- ConstNode.cs
- GC.cs
- CalendarAutoFormat.cs
- PieceNameHelper.cs
- TransformerInfo.cs
- AppliedDeviceFiltersEditor.cs
- ClassHandlersStore.cs
- LinqDataSourceView.cs
- ping.cs
- ValidationResult.cs
- RegexRunner.cs
- ProviderSettings.cs
- PointConverter.cs
- XmlSecureResolver.cs
- FileLoadException.cs
- PathNode.cs
- InheritanceContextHelper.cs
- CorruptingExceptionCommon.cs
- ErrorEventArgs.cs
- EnumerableCollectionView.cs
- ServiceErrorHandler.cs
- StructuredTypeEmitter.cs
- ProfileSettingsCollection.cs
- Journaling.cs
- DbException.cs
- FormClosingEvent.cs
- DataSourceConverter.cs
- DocumentViewerBase.cs
- BlockCollection.cs
- BindingCollection.cs
- ToolStripTextBox.cs
- IteratorDescriptor.cs
- WorkflowTransactionService.cs
- ModuleElement.cs
- TemplateNameScope.cs
- TreeNodeMouseHoverEvent.cs
- TextWriter.cs
- SplitContainer.cs
- CompoundFileIOPermission.cs
- HtmlHistory.cs
- ProxyWebPartConnectionCollection.cs
- CodeDirectoryCompiler.cs
- PrincipalPermission.cs
- ReflectionTypeLoadException.cs
- NativeObjectSecurity.cs
- AsyncCompletedEventArgs.cs
- VisualBrush.cs
- DataAdapter.cs
- AsymmetricKeyExchangeDeformatter.cs
- ToolStripEditorManager.cs
- Material.cs
- CommandValueSerializer.cs
- SelectionWordBreaker.cs
- HtmlTableCellCollection.cs
- Certificate.cs
- DrawTreeNodeEventArgs.cs
- SimpleExpression.cs
- RTTrackingProfile.cs
- MarkupCompiler.cs
- ScrollProviderWrapper.cs
- RIPEMD160Managed.cs
- XmlNullResolver.cs
- login.cs
- wgx_exports.cs
- DesignerTransaction.cs
- __Error.cs