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
- MultipartIdentifier.cs
- CustomError.cs
- NodeLabelEditEvent.cs
- ConnectionPointCookie.cs
- BitmapEffectInput.cs
- MenuItemAutomationPeer.cs
- EventLogPermissionEntry.cs
- SimpleBitVector32.cs
- XmlSchemaSimpleContent.cs
- BitVector32.cs
- HwndAppCommandInputProvider.cs
- XamlFilter.cs
- SSmlParser.cs
- ProfileManager.cs
- CryptoConfig.cs
- ITreeGenerator.cs
- ParserStreamGeometryContext.cs
- ProxyElement.cs
- EncoderBestFitFallback.cs
- NumericExpr.cs
- CustomCredentialPolicy.cs
- XmlNullResolver.cs
- RemoveFromCollection.cs
- IntegerValidatorAttribute.cs
- WebPartCancelEventArgs.cs
- TextParagraph.cs
- MultipleViewProviderWrapper.cs
- Process.cs
- ReplacementText.cs
- MenuItem.cs
- ScrollProviderWrapper.cs
- RequestCacheManager.cs
- PatternMatcher.cs
- TraceData.cs
- TransferMode.cs
- ButtonStandardAdapter.cs
- QEncodedStream.cs
- CodeExpressionRuleDeclaration.cs
- MulticastIPAddressInformationCollection.cs
- StatusBarPanelClickEvent.cs
- ControlUtil.cs
- XmlSchemaType.cs
- ImageCollectionCodeDomSerializer.cs
- Polygon.cs
- TextReader.cs
- CapabilitiesRule.cs
- XmlTypeMapping.cs
- FunctionCommandText.cs
- EditingCoordinator.cs
- LicFileLicenseProvider.cs
- ScrollBarAutomationPeer.cs
- RegexWriter.cs
- controlskin.cs
- WebBrowserUriTypeConverter.cs
- Scene3D.cs
- TreeView.cs
- StylusDevice.cs
- TypeListConverter.cs
- UseLicense.cs
- TransformValueSerializer.cs
- State.cs
- UpdateCompiler.cs
- TemplateBindingExtension.cs
- StrongNameKeyPair.cs
- GZipUtils.cs
- MobileComponentEditorPage.cs
- ToolboxComponentsCreatedEventArgs.cs
- ResetableIterator.cs
- SqlTypesSchemaImporter.cs
- ZipPackage.cs
- DataFormat.cs
- ShortcutKeysEditor.cs
- TypeConverterHelper.cs
- Rect.cs
- SoapServerProtocol.cs
- ValidationException.cs
- XmlCharacterData.cs
- DataServiceRequestArgs.cs
- InheritablePropertyChangeInfo.cs
- DynamicControlParameter.cs
- ActiveXHost.cs
- OracleConnectionStringBuilder.cs
- XmlTextReader.cs
- ResourceDictionary.cs
- QueryAccessibilityHelpEvent.cs
- WindowsScrollBarBits.cs
- MailHeaderInfo.cs
- StrongName.cs
- InternalRelationshipCollection.cs
- EventProvider.cs
- PropertyGroupDescription.cs
- EditorZone.cs
- SqlGenerator.cs
- Focus.cs
- dsa.cs
- ObjectViewQueryResultData.cs
- Stopwatch.cs
- Point4D.cs
- XmlSchemaInfo.cs
- AutomationPropertyInfo.cs