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
- LongTypeConverter.cs
- OperationContext.cs
- filewebrequest.cs
- FillBehavior.cs
- OdbcConnectionPoolProviderInfo.cs
- Focus.cs
- InfocardClientCredentials.cs
- SchemaTableOptionalColumn.cs
- ProfilePropertyMetadata.cs
- TemplateControl.cs
- DataGridCell.cs
- AsyncCompletedEventArgs.cs
- FileSystemEventArgs.cs
- HostingPreferredMapPath.cs
- DataQuery.cs
- UpdateEventArgs.cs
- TransactionsSectionGroup.cs
- SourceFileBuildProvider.cs
- SelectionItemPatternIdentifiers.cs
- Matrix3D.cs
- PairComparer.cs
- PolicyValidationException.cs
- MethodCallConverter.cs
- AttachedAnnotation.cs
- QueryOptionExpression.cs
- HtmlTitle.cs
- RuleRef.cs
- HtmlInputReset.cs
- XmlSchemaExporter.cs
- FixedPageAutomationPeer.cs
- HttpContextBase.cs
- CrossAppDomainChannel.cs
- EdmRelationshipRoleAttribute.cs
- NativeMethods.cs
- BaseDataListDesigner.cs
- Tracer.cs
- OutOfProcStateClientManager.cs
- TextSpanModifier.cs
- CodeAttributeArgument.cs
- ListViewGroupItemCollection.cs
- ClassValidator.cs
- SerializerDescriptor.cs
- DataRowChangeEvent.cs
- WithParamAction.cs
- RelatedCurrencyManager.cs
- InputProcessorProfilesLoader.cs
- ExpressionStringBuilder.cs
- ReturnType.cs
- ListViewGroup.cs
- SqlDataSourceQuery.cs
- CollectionBuilder.cs
- RewritingProcessor.cs
- __TransparentProxy.cs
- WebConfigurationHostFileChange.cs
- CommandBindingCollection.cs
- UriWriter.cs
- CollectionViewGroup.cs
- RemotingSurrogateSelector.cs
- SplitterCancelEvent.cs
- OptionUsage.cs
- XmlSchemaExternal.cs
- DateTimeFormatInfo.cs
- CodeArrayCreateExpression.cs
- WorkflowViewManager.cs
- SafeHandle.cs
- ViewGenerator.cs
- FixedSOMGroup.cs
- Label.cs
- HttpHostedTransportConfiguration.cs
- BezierSegment.cs
- BufferedMessageData.cs
- InvalidOperationException.cs
- EndOfStreamException.cs
- ReachSerializer.cs
- arc.cs
- SystemEvents.cs
- GenericUriParser.cs
- DataGridColumnsPage.cs
- WebPartActionVerb.cs
- AutomationPropertyChangedEventArgs.cs
- TextParaClient.cs
- EntityAdapter.cs
- CellParagraph.cs
- _ListenerAsyncResult.cs
- ThemeInfoAttribute.cs
- GridViewRow.cs
- DbConnectionInternal.cs
- CodeNamespace.cs
- XmlAutoDetectWriter.cs
- CredentialManagerDialog.cs
- PageSetupDialog.cs
- SpeechRecognitionEngine.cs
- SymbolType.cs
- TextBoxLine.cs
- ReflectEventDescriptor.cs
- XmlCompatibilityReader.cs
- CircleHotSpot.cs
- DocumentApplicationJournalEntry.cs
- CqlLexerHelpers.cs
- DiagnosticTraceSchemas.cs