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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- embossbitmapeffect.cs
- UIInitializationException.cs
- RestHandler.cs
- IntegerCollectionEditor.cs
- ParagraphVisual.cs
- SplitterCancelEvent.cs
- SqlCrossApplyToCrossJoin.cs
- SymbolMethod.cs
- SqlRetyper.cs
- IssuedTokenClientElement.cs
- SchemaNamespaceManager.cs
- ScriptReference.cs
- RemotingConfigParser.cs
- UserPreference.cs
- FontClient.cs
- CodeMemberField.cs
- DataBindingExpressionBuilder.cs
- ListSourceHelper.cs
- TcpClientCredentialType.cs
- Image.cs
- CommonObjectSecurity.cs
- RemotingConfigParser.cs
- PersonalizationDictionary.cs
- KerberosSecurityTokenAuthenticator.cs
- MonitorWrapper.cs
- BypassElement.cs
- AnonymousIdentificationModule.cs
- Logging.cs
- CachedTypeface.cs
- StringPropertyBuilder.cs
- ParserContext.cs
- PeerValidationBehavior.cs
- ObjectDataSourceMethodEventArgs.cs
- Localizer.cs
- LinkUtilities.cs
- CoreSwitches.cs
- PeerObject.cs
- CursorEditor.cs
- ContextBase.cs
- HotSpotCollection.cs
- ByteRangeDownloader.cs
- ImageSource.cs
- SchemaAttDef.cs
- Setter.cs
- XmlLanguage.cs
- XPathAncestorQuery.cs
- StyleModeStack.cs
- TripleDES.cs
- TextTabProperties.cs
- EventProxy.cs
- ClientUtils.cs
- HotSpotCollection.cs
- FileNotFoundException.cs
- AdRotator.cs
- WindowPatternIdentifiers.cs
- IsolationInterop.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PermissionAttributes.cs
- TreeViewDesigner.cs
- ProtocolsSection.cs
- ProfileSettings.cs
- IIS7WorkerRequest.cs
- MarshalByValueComponent.cs
- XmlDocument.cs
- SqlAggregateChecker.cs
- FormsAuthenticationTicket.cs
- ValidationRule.cs
- XPathDocumentNavigator.cs
- ModelServiceImpl.cs
- ConfigsHelper.cs
- PowerStatus.cs
- WebServiceResponseDesigner.cs
- HwndSource.cs
- PageContentCollection.cs
- SecurityKeyIdentifier.cs
- Symbol.cs
- basecomparevalidator.cs
- SelectedDatesCollection.cs
- EncodingTable.cs
- LostFocusEventManager.cs
- MarshalDirectiveException.cs
- GridItemCollection.cs
- PermissionRequestEvidence.cs
- QueryRewriter.cs
- Matrix.cs
- SamlDoNotCacheCondition.cs
- RightsManagementEncryptionTransform.cs
- ToolboxDataAttribute.cs
- ConfigPathUtility.cs
- MultipleViewProviderWrapper.cs
- TagMapInfo.cs
- iisPickupDirectory.cs
- mediaeventshelper.cs
- PathSegment.cs
- RIPEMD160.cs
- TextBounds.cs
- SQLGuid.cs
- TreeViewDesigner.cs
- PageThemeCodeDomTreeGenerator.cs
- InterleavedZipPartStream.cs