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
- ProcessHostMapPath.cs
- RelationalExpressions.cs
- RoutedEvent.cs
- HttpContext.cs
- ProfileProvider.cs
- QilDataSource.cs
- PrincipalPermission.cs
- SimpleApplicationHost.cs
- OnOperation.cs
- IconConverter.cs
- AssemblyFilter.cs
- CodeDirectionExpression.cs
- ToolStripSystemRenderer.cs
- DesignerHost.cs
- HideDisabledControlAdapter.cs
- HtmlElementEventArgs.cs
- EditingScope.cs
- FlowDocument.cs
- DictionaryBase.cs
- ForceCopyBuildProvider.cs
- UriWriter.cs
- QueryStack.cs
- TableLayoutPanelCodeDomSerializer.cs
- StructuredType.cs
- coordinatorfactory.cs
- SortKey.cs
- Attribute.cs
- ConfigurationCollectionAttribute.cs
- MULTI_QI.cs
- ArraySegment.cs
- ListViewGroupItemCollection.cs
- ObjectDisposedException.cs
- CompositionAdorner.cs
- FlowDocumentScrollViewer.cs
- MessageContractAttribute.cs
- TextTreeInsertElementUndoUnit.cs
- PeerApplicationLaunchInfo.cs
- StrongName.cs
- TextParaLineResult.cs
- codemethodreferenceexpression.cs
- PropertyChangingEventArgs.cs
- DataGridColumnFloatingHeader.cs
- RuleEngine.cs
- XPathSelectionIterator.cs
- CodeTypeOfExpression.cs
- ReaderContextStackData.cs
- XmlFormatReaderGenerator.cs
- ArrangedElement.cs
- SHA1CryptoServiceProvider.cs
- Page.cs
- BinaryExpression.cs
- EntityStoreSchemaFilterEntry.cs
- WindowsListViewSubItem.cs
- securitymgrsite.cs
- Tracer.cs
- ToolStripContextMenu.cs
- contentDescriptor.cs
- HijriCalendar.cs
- TextProviderWrapper.cs
- LoadRetryHandler.cs
- DialogResultConverter.cs
- HttpListenerRequest.cs
- Fx.cs
- EventLogger.cs
- HtmlElement.cs
- ValueSerializerAttribute.cs
- FunctionImportMapping.cs
- SoapSchemaImporter.cs
- CannotUnloadAppDomainException.cs
- Font.cs
- PointHitTestParameters.cs
- MainMenu.cs
- XmlNamedNodeMap.cs
- StrokeNodeOperations.cs
- SelectionGlyphBase.cs
- Cell.cs
- BinHexDecoder.cs
- Calendar.cs
- DataSvcMapFile.cs
- OracleConnection.cs
- ConnectionOrientedTransportBindingElement.cs
- XmlIlTypeHelper.cs
- TimeSpanStorage.cs
- TextWriterTraceListener.cs
- RegexCompilationInfo.cs
- DoubleConverter.cs
- NotificationContext.cs
- SpellerHighlightLayer.cs
- ScriptingScriptResourceHandlerSection.cs
- IEnumerable.cs
- ClassDataContract.cs
- SoapEnumAttribute.cs
- SerialPinChanges.cs
- Page.cs
- AspProxy.cs
- PersonalizationEntry.cs
- GridViewItemAutomationPeer.cs
- HttpModuleActionCollection.cs
- TailCallAnalyzer.cs
- DigestComparer.cs