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
- TextTreeRootTextBlock.cs
- RtfFormatStack.cs
- Geometry.cs
- ToolTip.cs
- DataControlFieldCollection.cs
- DiscoveryMessageSequenceCD1.cs
- Accessible.cs
- _MultipleConnectAsync.cs
- DetailsViewRowCollection.cs
- TryExpression.cs
- MessageOperationFormatter.cs
- Screen.cs
- ProviderIncompatibleException.cs
- CacheHelper.cs
- TextSelectionHighlightLayer.cs
- ExeConfigurationFileMap.cs
- ClientSettings.cs
- FlagsAttribute.cs
- WebPartVerb.cs
- ExtentCqlBlock.cs
- PlatformCulture.cs
- MetaModel.cs
- XmlMemberMapping.cs
- SocketManager.cs
- OracleParameter.cs
- AdCreatedEventArgs.cs
- ListViewCommandEventArgs.cs
- ClientTargetCollection.cs
- HttpCapabilitiesEvaluator.cs
- BrowserInteropHelper.cs
- SystemIcons.cs
- HandleExceptionArgs.cs
- CellConstant.cs
- MetadataUtil.cs
- ConfigDefinitionUpdates.cs
- OleDbInfoMessageEvent.cs
- EnumType.cs
- ConfigurationManager.cs
- ClientSideQueueItem.cs
- TemplatedWizardStep.cs
- BamlResourceContent.cs
- SoapTypeAttribute.cs
- PermissionSetTriple.cs
- MachineKeyValidationConverter.cs
- RoutedEvent.cs
- SQLMembershipProvider.cs
- HostingEnvironment.cs
- WindowAutomationPeer.cs
- FileSystemWatcher.cs
- DataPagerFieldItem.cs
- Config.cs
- Span.cs
- LinearKeyFrames.cs
- QuotedStringFormatReader.cs
- MemberExpression.cs
- LogSwitch.cs
- MenuAdapter.cs
- CommandBindingCollection.cs
- FlowDocumentFormatter.cs
- TextEditorMouse.cs
- sitestring.cs
- PageContent.cs
- EntityDataSourceContainerNameConverter.cs
- SmtpMail.cs
- AdapterDictionary.cs
- Converter.cs
- InstanceLockedException.cs
- Vector3DCollectionConverter.cs
- SchemaNames.cs
- Int16Storage.cs
- BaseResourcesBuildProvider.cs
- StringSource.cs
- OneOfScalarConst.cs
- SplitterCancelEvent.cs
- HttpCacheParams.cs
- ToolStripKeyboardHandlingService.cs
- ProtocolsConfiguration.cs
- RawKeyboardInputReport.cs
- SqlDependencyUtils.cs
- BinHexEncoder.cs
- PrimitiveSchema.cs
- ReferentialConstraint.cs
- AssertSection.cs
- Char.cs
- XmlWriterSettings.cs
- Attributes.cs
- BuildProviderAppliesToAttribute.cs
- ResolveRequestResponseAsyncResult.cs
- BlobPersonalizationState.cs
- SelectionItemProviderWrapper.cs
- IPEndPoint.cs
- EventPropertyMap.cs
- VariableDesigner.xaml.cs
- NavigateEvent.cs
- Enlistment.cs
- LiteralText.cs
- IntSecurity.cs
- RegionData.cs
- AudioFileOut.cs
- EntityEntry.cs