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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextPattern.cs
- SystemUnicastIPAddressInformation.cs
- SystemIPv4InterfaceProperties.cs
- ColorConvertedBitmap.cs
- AutoScrollHelper.cs
- AutomationPeer.cs
- Hex.cs
- TcpClientSocketManager.cs
- EmptyReadOnlyDictionaryInternal.cs
- GZipDecoder.cs
- QilValidationVisitor.cs
- OdbcParameter.cs
- DataDocumentXPathNavigator.cs
- AssemblyBuilder.cs
- StreamGeometry.cs
- SortFieldComparer.cs
- ComponentCache.cs
- DurationConverter.cs
- ProxyWebPartConnectionCollection.cs
- SettingsBase.cs
- AutomationIdentifier.cs
- XmlSchemaSimpleContentRestriction.cs
- _SslState.cs
- CompositionTarget.cs
- SafeEventHandle.cs
- TextEditor.cs
- Operators.cs
- InvalidAsynchronousStateException.cs
- FormattedTextSymbols.cs
- ScalarConstant.cs
- PriorityChain.cs
- MoveSizeWinEventHandler.cs
- SctClaimDictionary.cs
- ObjectMemberMapping.cs
- WebPartUserCapability.cs
- AssemblyUtil.cs
- SizeFConverter.cs
- DrawingDrawingContext.cs
- FontResourceCache.cs
- XPathDocumentBuilder.cs
- SignatureDescription.cs
- RegexWorker.cs
- AlternateView.cs
- GeometryConverter.cs
- LineSegment.cs
- PlacementWorkspace.cs
- WebBrowserHelper.cs
- BindingMAnagerBase.cs
- XamlFilter.cs
- Style.cs
- DSASignatureDeformatter.cs
- TypeConverter.cs
- NotCondition.cs
- TextViewSelectionProcessor.cs
- WebPartsSection.cs
- ExpressionBuilder.cs
- WMIGenerator.cs
- VerificationAttribute.cs
- PolyBezierSegment.cs
- ReadOnlyCollection.cs
- SuppressIldasmAttribute.cs
- HttpChannelBindingToken.cs
- CommonDialog.cs
- GradientStop.cs
- Point.cs
- TrackingLocationCollection.cs
- SiteMapNodeItem.cs
- XmlParserContext.cs
- Rotation3D.cs
- PersonalizationStateInfo.cs
- MultiAsyncResult.cs
- CqlGenerator.cs
- CalendarDateChangedEventArgs.cs
- PrivateFontCollection.cs
- PeerHopCountAttribute.cs
- AnnotationStore.cs
- XmlSerializerOperationBehavior.cs
- ScopelessEnumAttribute.cs
- OdbcConnection.cs
- HtmlWindowCollection.cs
- ArgumentDesigner.xaml.cs
- SqlBooleanizer.cs
- PopOutPanel.cs
- CategoryGridEntry.cs
- DataSourceCache.cs
- SegmentInfo.cs
- BatchParser.cs
- _UriTypeConverter.cs
- BitmapSizeOptions.cs
- XmlValidatingReader.cs
- IsolatedStorage.cs
- SectionXmlInfo.cs
- SettingsContext.cs
- TargetConverter.cs
- ServiceHostingEnvironment.cs
- DataGridViewComboBoxColumnDesigner.cs
- HtmlElementEventArgs.cs
- MimeXmlReflector.cs
- ProcessRequestArgs.cs
- LayoutInformation.cs